Searched refs:halflen (Results 1 – 3 of 3) sorted by relevance
/external/python/cpython2/Modules/ |
D | _collectionsmodule.c | 413 Py_ssize_t m, len=deque->len, halflen=len>>1; in _deque_rotate() local 417 if (n > halflen || n < -halflen) { in _deque_rotate() 419 if (n > halflen) in _deque_rotate() 421 else if (n < -halflen) in _deque_rotate() 425 assert(-halflen <= n && n <= halflen); in _deque_rotate() 782 Py_ssize_t n, len=deque->len, halflen=(len+1)>>1, index=i; in deque_ass_item() local 795 if (index <= halflen) { in deque_ass_item()
|
/external/python/cpython3/Modules/ |
D | _collectionsmodule.c | 808 Py_ssize_t len=Py_SIZE(deque), halflen=len>>1; in _deque_rotate() local 813 if (n > halflen || n < -halflen) { in _deque_rotate() 815 if (n > halflen) in _deque_rotate() 817 else if (n < -halflen) in _deque_rotate() 821 assert(-halflen <= n && n <= halflen); in _deque_rotate() 1275 Py_ssize_t n, len=Py_SIZE(deque), halflen=(len+1)>>1, index=i; in deque_ass_item() local 1287 if (index <= halflen) { in deque_ass_item()
|
/external/python/cpython3/Lib/test/ |
D | test_bz2.py | 507 halflen = linelen // 2 509 bz2f.read(halflen) 510 self.assertEqual(next(bz2f), self.TEXT_LINES[0][halflen:])
|