Home
last modified time | relevance | path

Searched refs:BLOCKLEN (Results 1 - 2 of 2) sorted by relevance

/third_party/python/Modules/
H A D_collectionsmodule.c27 #define BLOCKLEN 64 macro
28 #define CENTER ((BLOCKLEN - 1) / 2)
57 * 0 <= index < BLOCKLEN
60 * (d.leftindex + d.len - 1) % BLOCKLEN == d.rightindex
80 PyObject *data[BLOCKLEN];
88 Py_ssize_t leftindex; /* 0 <= leftindex < BLOCKLEN */
89 Py_ssize_t rightindex; /* 0 <= rightindex < BLOCKLEN */
170 assert(BLOCKLEN >= 2); in deque_new()
207 deque->rightindex = BLOCKLEN - 1; in deque_pop()
237 if (deque->leftindex == BLOCKLEN) { in deque_popleft()
[all...]
/third_party/python/Lib/test/
H A Dtest_deque.py746 BLOCKLEN = 64
748 blocksize = struct.calcsize('P%dPP' % BLOCKLEN)
753 check(deque('a' * (BLOCKLEN - 1)), basesize + blocksize)
754 check(deque('a' * BLOCKLEN), basesize + 2 * blocksize)
755 check(deque('a' * (42 * BLOCKLEN)), basesize + 43 * blocksize)

Completed in 4 milliseconds