• Home
  • Raw
  • Download

Lines Matching refs:leftindex

90     Py_ssize_t leftindex;       /* 0 <= leftindex < BLOCKLEN */  member
178 deque->leftindex = CENTER + 1; in deque_new()
213 assert(deque->leftindex == deque->rightindex+1); in deque_pop()
215 deque->leftindex = CENTER + 1; in deque_pop()
235 item = deque->leftblock->data[deque->leftindex]; in deque_popleft()
236 deque->leftindex++; in deque_popleft()
240 if (deque->leftindex == BLOCKLEN) { in deque_popleft()
248 deque->leftindex = 0; in deque_popleft()
251 assert(deque->leftindex == deque->rightindex+1); in deque_popleft()
253 deque->leftindex = CENTER + 1; in deque_popleft()
316 if (deque->leftindex == 0) { in deque_appendleft_internal()
325 deque->leftindex = BLOCKLEN; in deque_appendleft_internal()
328 deque->leftindex--; in deque_appendleft_internal()
329 deque->leftblock->data[deque->leftindex] = item; in deque_appendleft_internal()
408 assert(deque->leftindex == deque->rightindex+1); in deque_extend()
409 deque->leftindex = 1; in deque_extend()
455 assert(deque->leftindex == deque->rightindex+1); in deque_extendleft()
456 deque->leftindex = BLOCKLEN - 1; in deque_extendleft()
502 PyObject *item = old_deque->leftblock->data[old_deque->leftindex]; in deque_copy()
565 Py_ssize_t leftindex; in deque_clear() local
595 leftindex = deque->leftindex; in deque_clear()
603 deque->leftindex = CENTER + 1; in deque_clear()
610 m = (BLOCKLEN - leftindex > n) ? n : BLOCKLEN - leftindex; in deque_clear()
611 itemptr = &leftblock->data[leftindex]; in deque_clear()
673 PyObject *item = deque->leftblock->data[deque->leftindex]; in deque_inplace_repeat()
778 Py_ssize_t leftindex = deque->leftindex; in _deque_rotate() local
797 if (leftindex == 0) { in _deque_rotate()
808 leftindex = BLOCKLEN; in _deque_rotate()
811 assert(leftindex > 0); in _deque_rotate()
818 if (m > leftindex) in _deque_rotate()
819 m = leftindex; in _deque_rotate()
822 leftindex -= m; in _deque_rotate()
824 dest = &leftblock->data[leftindex]; in _deque_rotate()
860 if (m > BLOCKLEN - leftindex) in _deque_rotate()
861 m = BLOCKLEN - leftindex; in _deque_rotate()
865 src = &leftblock->data[leftindex]; in _deque_rotate()
867 leftindex += m; in _deque_rotate()
874 if (leftindex == BLOCKLEN) { in _deque_rotate()
881 leftindex = 0; in _deque_rotate()
890 deque->leftindex = leftindex; in _deque_rotate()
918 Py_ssize_t leftindex = deque->leftindex; in deque_reverse() local
925 assert(leftblock != rightblock || leftindex < rightindex); in deque_reverse()
930 tmp = leftblock->data[leftindex]; in deque_reverse()
931 leftblock->data[leftindex] = rightblock->data[rightindex]; in deque_reverse()
935 leftindex++; in deque_reverse()
936 if (leftindex == BLOCKLEN) { in deque_reverse()
938 leftindex = 0; in deque_reverse()
958 Py_ssize_t index = deque->leftindex; in deque_count()
998 Py_ssize_t index = deque->leftindex; in deque_contains()
1039 Py_ssize_t index = deque->leftindex; in deque_index()
1155 PyObject *item = deque->leftblock->data[deque->leftindex]; in deque_remove()
1205 i = deque->leftindex; in deque_item()
1211 i += deque->leftindex; in deque_item()
1220 ((size_t)(deque->leftindex + Py_SIZE(deque) - 1)) in deque_item()
1262 i += deque->leftindex; in deque_ass_item()
1271 ((size_t)(deque->leftindex + Py_SIZE(deque) - 1)) in deque_ass_item()
1306 Py_ssize_t indexlo = deque->leftindex; in deque_traverse()
1510 blocks = (size_t)(deque->leftindex + Py_SIZE(deque) + BLOCKLEN - 1) / BLOCKLEN; in deque_sizeof()
1511 assert(deque->leftindex + Py_SIZE(deque) - 1 == in deque_sizeof()
1688 it->index = deque->leftindex; in deque_iter()
1869 it->index < it->deque->leftindex)); in dequereviter_next()