Lines Matching refs:rightindex
101 Py_ssize_t rightindex; /* in range(BLOCKLEN) */ member
147 deque->rightindex = CENTER; in deque_new()
166 item = deque->rightblock->data[deque->rightindex]; in deque_pop()
167 deque->rightindex--; in deque_pop()
171 if (deque->rightindex == -1) { in deque_pop()
174 assert(deque->leftindex == deque->rightindex+1); in deque_pop()
177 deque->rightindex = CENTER; in deque_pop()
184 deque->rightindex = BLOCKLEN - 1; in deque_pop()
211 assert(deque->leftindex == deque->rightindex+1); in deque_popleft()
214 deque->rightindex = CENTER; in deque_popleft()
234 if (deque->rightindex == BLOCKLEN-1) { in deque_append()
241 deque->rightindex = -1; in deque_append()
245 deque->rightindex++; in deque_append()
246 deque->rightblock->data[deque->rightindex] = item; in deque_append()
318 if (deque->rightindex == BLOCKLEN-1) { in deque_extend()
329 deque->rightindex = -1; in deque_extend()
332 deque->rightindex++; in deque_extend()
333 deque->rightblock->data[deque->rightindex] = item; in deque_extend()
441 if (m > deque->rightindex + 1) in _deque_rotate()
442 m = deque->rightindex + 1; in _deque_rotate()
447 &deque->rightblock->data[deque->rightindex + 1 - m], in _deque_rotate()
449 deque->rightindex -= m; in _deque_rotate()
453 if (deque->rightindex == -1) { in _deque_rotate()
460 deque->rightindex = BLOCKLEN - 1; in _deque_rotate()
464 if (deque->rightindex == BLOCKLEN - 1) { in _deque_rotate()
471 deque->rightindex = -1; in _deque_rotate()
473 assert (deque->rightindex < BLOCKLEN - 1); in _deque_rotate()
478 if (m > BLOCKLEN - 1 - deque->rightindex) in _deque_rotate()
479 m = BLOCKLEN - 1 - deque->rightindex; in _deque_rotate()
481 memcpy(&deque->rightblock->data[deque->rightindex + 1], in _deque_rotate()
485 deque->rightindex += m; in _deque_rotate()
522 Py_ssize_t rightindex = deque->rightindex; in deque_reverse() local
529 assert(leftblock != rightblock || leftindex < rightindex); in deque_reverse()
533 leftblock->data[leftindex] = rightblock->data[rightindex]; in deque_reverse()
534 rightblock->data[rightindex] = tmp; in deque_reverse()
546 rightindex--; in deque_reverse()
547 if (rightindex == -1) { in deque_reverse()
551 rightindex = BLOCKLEN - 1; in deque_reverse()
684 deque->rightindex = CENTER; in deque_clear()
732 i = deque->rightindex; in deque_item()
847 deque->rightindex : in deque_traverse()
1117 (blocks - 1) * BLOCKLEN + deque->rightindex); in deque_sizeof()
1304 it->index > it->deque->rightindex)); in dequeiter_next()
1377 it->index = deque->rightindex; in deque_reviter()