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.c30 #define BLOCKLEN 64 macro
31 #define CENTER ((BLOCKLEN - 1) / 2)
82 PyObject *data[BLOCKLEN];
174 assert(BLOCKLEN >= 2); in deque_new()
210 deque->rightindex = BLOCKLEN - 1; in deque_pop()
240 if (deque->leftindex == BLOCKLEN) { in deque_popleft()
279 if (deque->rightindex == BLOCKLEN - 1) { in deque_append_internal()
325 deque->leftindex = BLOCKLEN; in deque_appendleft_internal()
456 deque->leftindex = BLOCKLEN - 1; in deque_extendleft()
457 deque->rightindex = BLOCKLEN - 2; 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.py776 BLOCKLEN = 64
778 blocksize = struct.calcsize('P%dPP' % BLOCKLEN)
783 check(deque('a' * (BLOCKLEN - 1)), basesize + blocksize)
784 check(deque('a' * BLOCKLEN), basesize + 2 * blocksize)
785 check(deque('a' * (42 * BLOCKLEN)), basesize + 43 * blocksize)