Home
last modified time | relevance | path

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

/external/python/cpython2/Objects/
Dlongobject.c530 size_t numsignificantbytes; /* number of bytes that matter */ in _PyLong_FromByteArray() local
565 numsignificantbytes = n - i; in _PyLong_FromByteArray()
571 if (is_signed && numsignificantbytes < n) in _PyLong_FromByteArray()
572 ++numsignificantbytes; in _PyLong_FromByteArray()
579 if (numsignificantbytes > (PY_SSIZE_T_MAX - PyLong_SHIFT) / 8) { in _PyLong_FromByteArray()
584 ndigits = (numsignificantbytes * 8 + PyLong_SHIFT - 1) / PyLong_SHIFT; in _PyLong_FromByteArray()
599 for (i = 0; i < numsignificantbytes; ++i, p += incr) { in _PyLong_FromByteArray()
/external/python/cpython3/Objects/
Dlongobject.c780 size_t numsignificantbytes; /* number of bytes that matter */ in _PyLong_FromByteArray() local
815 numsignificantbytes = n - i; in _PyLong_FromByteArray()
821 if (is_signed && numsignificantbytes < n) in _PyLong_FromByteArray()
822 ++numsignificantbytes; in _PyLong_FromByteArray()
829 if (numsignificantbytes > (PY_SSIZE_T_MAX - PyLong_SHIFT) / 8) { in _PyLong_FromByteArray()
834 ndigits = (numsignificantbytes * 8 + PyLong_SHIFT - 1) / PyLong_SHIFT; in _PyLong_FromByteArray()
849 for (i = 0; i < numsignificantbytes; ++i, p += incr) { in _PyLong_FromByteArray()