Home | History | Annotate | Download | only in test

Lines Matching defs:SHIFT

18 # SHIFT should match the value in longintrepr.h for best testing.
19 SHIFT = sys.long_info.bits_per_digit
20 BASE = 2 ** SHIFT
34 for i in range(2*SHIFT):
94 nbits_hi = ndigits * SHIFT
95 nbits_lo = nbits_hi - SHIFT + 1
98 r = int(random.random() * (SHIFT * 2)) | 1 # force 1 bits to start
102 self.assertTrue(1 <= bits <= SHIFT)
107 r = int(random.random() * (SHIFT * 2))
119 answer = (answer << SHIFT) | random.randint(0, MASK)
181 bits = [digit * SHIFT for digit in digits]
216 for n in xrange(2*SHIFT):