Home
last modified time | relevance | path

Searched refs:BLOCKLEN (Results 1 – 4 of 4) sorted by relevance

/external/python/cpython2/Modules/
D_collectionsmodule.c18 #define BLOCKLEN 62 macro
19 #define CENTER ((BLOCKLEN - 1) / 2)
51 PyObject *data[BLOCKLEN];
65 if (len >= PY_SSIZE_T_MAX - 2*BLOCKLEN) { in newblock()
143 assert(BLOCKLEN >= 2); in deque_new()
184 deque->rightindex = BLOCKLEN - 1; in deque_pop()
208 if (deque->leftindex == BLOCKLEN) { in deque_popleft()
234 if (deque->rightindex == BLOCKLEN-1) { in deque_append()
264 deque->leftindex = BLOCKLEN; in deque_appendleft()
318 if (deque->rightindex == BLOCKLEN-1) { in deque_extend()
[all …]
/external/python/cpython3/Modules/
D_collectionsmodule.c21 #define BLOCKLEN 64 macro
22 #define CENTER ((BLOCKLEN - 1) / 2)
73 PyObject *data[BLOCKLEN];
165 assert(BLOCKLEN >= 2); in deque_new()
201 deque->rightindex = BLOCKLEN - 1; in deque_pop()
231 if (deque->leftindex == BLOCKLEN) { in deque_popleft()
270 if (deque->rightindex == BLOCKLEN - 1) { in deque_append_internal()
316 deque->leftindex = BLOCKLEN; in deque_appendleft_internal()
406 if (deque->rightindex == BLOCKLEN - 1) { in deque_extend()
465 deque->leftindex = BLOCKLEN - 1; in deque_extendleft()
[all …]
/external/python/cpython2/Lib/test/
Dtest_deque.py525 BLOCKLEN = 62
527 blocksize = struct.calcsize('%dP2P' % BLOCKLEN)
532 check(deque('a' * (BLOCKLEN // 2)), basesize + blocksize)
533 check(deque('a' * (BLOCKLEN // 2 + 1)), basesize + 2 * blocksize)
534 check(deque('a' * (42 * BLOCKLEN)), basesize + 43 * blocksize)
/external/python/cpython3/Lib/test/
Dtest_deque.py756 BLOCKLEN = 64
758 blocksize = struct.calcsize('P%dPP' % BLOCKLEN)
763 check(deque('a' * (BLOCKLEN - 1)), basesize + blocksize)
764 check(deque('a' * BLOCKLEN), basesize + 2 * blocksize)
765 check(deque('a' * (42 * BLOCKLEN)), basesize + 43 * blocksize)