Lines Matching refs:NBITS
13 const int NBITS = sizeof(TYPENAME) * 8;
27 i < NBITS + 1; /* on last, base overflows to 0 */
106 /* Unsigned complains about 2**NBITS? */
107 y = PyLong_FromLong((long)NBITS);
112 x = PyNumber_Lshift(one, y); /* 1L << NBITS, == 2**NBITS */
121 "PyLong_AsUnsignedXXX(2**NBITS) didn't "
125 "PyLong_AsUnsignedXXX(2**NBITS) raised "
129 /* Signed complains about 2**(NBITS-1)?
130 x still has 2**NBITS. */
131 y = PyNumber_Rshift(x, one); /* 2**(NBITS-1) */
140 "PyLong_AsXXX(2**(NBITS-1)) didn't "
144 "PyLong_AsXXX(2**(NBITS-1)) raised "
148 /* Signed complains about -2**(NBITS-1)-1?;
149 y still has 2**(NBITS-1). */
150 x = PyNumber_Negative(y); /* -(2**(NBITS-1)) */
156 y = PyNumber_Subtract(x, one); /* -(2**(NBITS-1))-1 */
165 "PyLong_AsXXX(-2**(NBITS-1)-1) didn't "
169 "PyLong_AsXXX(-2**(NBITS-1)-1) raised "