Lines Matching defs:digit
13 integer type, and one set for 15-bit digits with each digit stored in an
15 configure time or in pyport.h, is used to decide which digit size to use.
17 Type 'digit' should be able to hold 2*PyLong_BASE-1, and type 'twodigits'
19 PyLong_BASE*PyLong_BASE-1. x_sub assumes that 'digit' is an unsigned type,
36 digit; with the current values this forces PyLong_SHIFT >= 9
43 typedef uint32_t digit;
44 typedef int32_t sdigit; /* signed variant of digit */
48 #define _PyLong_DECIMAL_SHIFT 9 /* max(e such that 10**e fits in a digit) */
49 #define _PyLong_DECIMAL_BASE ((digit)1000000000) /* 10 ** DECIMAL_SHIFT */
51 typedef unsigned short digit;
52 typedef short sdigit; /* signed variant of digit */
56 #define _PyLong_DECIMAL_SHIFT 4 /* max(e such that 10**e fits in a digit) */
57 #define _PyLong_DECIMAL_BASE ((digit)10000) /* 10 ** DECIMAL_SHIFT */
61 #define PyLong_BASE ((digit)1 << PyLong_SHIFT)
62 #define PyLong_MASK ((digit)(PyLong_BASE - 1))
70 digit) is never zero. Also, in all cases, for all valid i,
74 We always allocate memory for at least one digit, so accessing ob_digit[0]
84 digit ob_digit[1];