Home | History | Annotate | Download | only in Modules

Lines Matching refs:rightindex

23  * d.rightblock[rightindex]; note that, unlike as for Python slice

31 * The indices, d.leftindex and d.rightindex are always in the range
34 * (d.leftindex + d.len - 1) % BLOCKLEN == d.rightindex.
37 * d.leftindex == CENTER+1; and d.rightindex == CENTER.
41 * d.leftindex + d.len - 1 == d.rightindex.
43 * However, when d.leftblock != d.rightblock, d.leftindex and d.rightindex
104 Py_ssize_t rightindex; /* in range(BLOCKLEN) */
150 deque->rightindex = CENTER;
169 item = deque->rightblock->data[deque->rightindex];
170 deque->rightindex--;
174 if (deque->rightindex == -1) {
177 assert(deque->leftindex == deque->rightindex+1);
180 deque->rightindex = CENTER;
187 deque->rightindex = BLOCKLEN - 1;
214 assert(deque->leftindex == deque->rightindex+1);
217 deque->rightindex = CENTER;
237 if (deque->rightindex == BLOCKLEN-1) {
244 deque->rightindex = -1;
248 deque->rightindex++;
249 deque->rightblock->data[deque->rightindex] = item;
321 if (deque->rightindex == BLOCKLEN-1) {
332 deque->rightindex = -1;
335 deque->rightindex++;
336 deque->rightblock->data[deque->rightindex] = item;
471 Py_ssize_t rightindex = deque->rightindex;
478 assert(leftblock != rightblock || leftindex < rightindex);
482 leftblock->data[leftindex] = rightblock->data[rightindex];
483 rightblock->data[rightindex] = tmp;
495 rightindex--;
496 if (rightindex == -1) {
500 rightindex = BLOCKLEN - 1;
602 deque->leftindex - 1 == deque->rightindex &&
624 i = deque->rightindex;
742 deque->rightindex :
1168 it->index > it->deque->rightindex));
1241 it->index = deque->rightindex;