Lines Matching refs:leftindex
100 Py_ssize_t leftindex; /* in range(BLOCKLEN) */ member
146 deque->leftindex = CENTER + 1; in deque_new()
174 assert(deque->leftindex == deque->rightindex+1); in deque_pop()
176 deque->leftindex = CENTER + 1; in deque_pop()
203 item = deque->leftblock->data[deque->leftindex]; in deque_popleft()
204 deque->leftindex++; in deque_popleft()
208 if (deque->leftindex == BLOCKLEN) { in deque_popleft()
211 assert(deque->leftindex == deque->rightindex+1); in deque_popleft()
213 deque->leftindex = CENTER + 1; in deque_popleft()
222 deque->leftindex = 0; in deque_popleft()
257 if (deque->leftindex == 0) { in deque_appendleft()
264 deque->leftindex = BLOCKLEN; in deque_appendleft()
268 deque->leftindex--; in deque_appendleft()
269 deque->leftblock->data[deque->leftindex] = item; in deque_appendleft()
370 if (deque->leftindex == 0) { in deque_extendleft()
381 deque->leftindex = BLOCKLEN; in deque_extendleft()
384 deque->leftindex--; in deque_extendleft()
385 deque->leftblock->data[deque->leftindex] = item; in deque_extendleft()
429 if (deque->leftindex == 0) { in _deque_rotate()
436 deque->leftindex = BLOCKLEN; in _deque_rotate()
438 assert(deque->leftindex > 0); in _deque_rotate()
443 if (m > deque->leftindex) in _deque_rotate()
444 m = deque->leftindex; in _deque_rotate()
446 memcpy(&deque->leftblock->data[deque->leftindex - m], in _deque_rotate()
450 deque->leftindex -= m; in _deque_rotate()
476 if (m > BLOCKLEN - deque->leftindex) in _deque_rotate()
477 m = BLOCKLEN - deque->leftindex; in _deque_rotate()
482 &deque->leftblock->data[deque->leftindex], in _deque_rotate()
484 deque->leftindex += m; in _deque_rotate()
488 if (deque->leftindex == BLOCKLEN) { in _deque_rotate()
495 deque->leftindex = 0; in _deque_rotate()
521 Py_ssize_t leftindex = deque->leftindex; in deque_reverse() local
529 assert(leftblock != rightblock || leftindex < rightindex); in deque_reverse()
532 tmp = leftblock->data[leftindex]; in deque_reverse()
533 leftblock->data[leftindex] = rightblock->data[rightindex]; in deque_reverse()
537 leftindex++; in deque_reverse()
538 if (leftindex == BLOCKLEN) { in deque_reverse()
542 leftindex = 0; in deque_reverse()
564 Py_ssize_t leftindex = deque->leftindex; in deque_count() local
573 item = leftblock->data[leftindex]; in deque_count()
587 leftindex++; in deque_count()
588 if (leftindex == BLOCKLEN) { in deque_count()
592 leftindex = 0; in deque_count()
613 PyObject *item = deque->leftblock->data[deque->leftindex]; in deque_remove()
648 Py_ssize_t leftindex; in deque_clear() local
676 leftindex = deque->leftindex; in deque_clear()
683 deque->leftindex = CENTER + 1; in deque_clear()
691 item = leftblock->data[leftindex]; in deque_clear()
693 leftindex++; in deque_clear()
694 if (leftindex == BLOCKLEN && n) { in deque_clear()
698 leftindex = 0; in deque_clear()
729 i = deque->leftindex; in deque_item()
735 i += deque->leftindex; in deque_item()
743 n = (deque->leftindex + deque->len - 1) / BLOCKLEN - n; in deque_item()
792 i += deque->leftindex; in deque_ass_item()
800 n = (deque->leftindex + len - 1) / BLOCKLEN - n; in deque_ass_item()
843 Py_ssize_t indexlo = deque->leftindex; in deque_traverse()
1115 blocks = (deque->leftindex + deque->len + BLOCKLEN - 1) / BLOCKLEN; in deque_sizeof()
1116 assert(deque->leftindex + deque->len - 1 == in deque_sizeof()
1265 it->index = deque->leftindex; in deque_iter()
1400 it->index < it->deque->leftindex)); in dequereviter_next()