Home
last modified time | relevance | path

Searched refs:leftindex (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython2/Modules/
D_collectionsmodule.c100 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()
[all …]
/external/python/cpython3/Modules/
D_collectionsmodule.c90 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()
[all …]