Home
last modified time | relevance | path

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

/third_party/python/Include/cpython/
H A Dlongintrepr.h49 #define _PyLong_DECIMAL_BASE ((digit)1000000000) /* 10 ** DECIMAL_SHIFT */ macro
57 #define _PyLong_DECIMAL_BASE ((digit)10000) /* 10 ** DECIMAL_SHIFT */ macro
/third_party/python/Objects/
H A Dlongobject.c1748 required to express a in base _PyLong_DECIMAL_BASE: in long_to_decimal_string_internal()
1750 #digits = 1 + floor(log2(a) / log2(_PyLong_DECIMAL_BASE)) in long_to_decimal_string_internal()
1753 log2(_PyLong_DECIMAL_BASE) = log2(10) * _PyLong_DECIMAL_SHIFT in long_to_decimal_string_internal()
1770 base _PyLong_DECIMAL_BASE digits in pout, following Knuth (TAOCP, in long_to_decimal_string_internal()
1779 hi = (digit)(z / _PyLong_DECIMAL_BASE); in long_to_decimal_string_internal()
1781 _PyLong_DECIMAL_BASE); in long_to_decimal_string_internal()
1784 pout[size++] = hi % _PyLong_DECIMAL_BASE; in long_to_decimal_string_internal()
1785 hi /= _PyLong_DECIMAL_BASE; in long_to_decimal_string_internal()

Completed in 8 milliseconds