Lines Matching refs:accumbits
596 unsigned int accumbits = 0; /* number of bits in accum */ in _PyLong_FromByteArray() local
610 accum |= (twodigits)thisbyte << accumbits; in _PyLong_FromByteArray()
611 accumbits += 8; in _PyLong_FromByteArray()
612 if (accumbits >= PyLong_SHIFT) { in _PyLong_FromByteArray()
618 accumbits -= PyLong_SHIFT; in _PyLong_FromByteArray()
619 assert(accumbits < PyLong_SHIFT); in _PyLong_FromByteArray()
622 assert(accumbits < PyLong_SHIFT); in _PyLong_FromByteArray()
623 if (accumbits) { in _PyLong_FromByteArray()
642 unsigned int accumbits; /* # bits in accum */ in _PyLong_AsByteArray() local
681 accumbits = 0; in _PyLong_AsByteArray()
693 accum |= (twodigits)thisdigit << accumbits; in _PyLong_AsByteArray()
704 accumbits++; in _PyLong_AsByteArray()
708 accumbits += PyLong_SHIFT; in _PyLong_AsByteArray()
711 while (accumbits >= 8) { in _PyLong_AsByteArray()
717 accumbits -= 8; in _PyLong_AsByteArray()
723 assert(accumbits < 8); in _PyLong_AsByteArray()
725 if (accumbits > 0) { in _PyLong_AsByteArray()
733 accum |= (~(twodigits)0) << accumbits; in _PyLong_AsByteArray()
745 assert(accumbits == 0); in _PyLong_AsByteArray()
1507 int accumbits = 0; /* # of bits in accum */ in _PyLong_Format() local
1514 accum |= (twodigits)a->ob_digit[i] << accumbits; in _PyLong_Format()
1515 accumbits += PyLong_SHIFT; in _PyLong_Format()
1516 assert(accumbits >= basebits); in _PyLong_Format()
1522 accumbits -= basebits; in _PyLong_Format()
1524 } while (i < size_a-1 ? accumbits >= basebits : accum > 0); in _PyLong_Format()