Lines Matching refs:bit_length
62 shift = n.bit_length() - PRECISION
97 d = a.bit_length() - b.bit_length()
988 k = x.bit_length()
1005 self.assertEqual((0).bit_length(), 0)
1006 self.assertEqual((1).bit_length(), 1)
1007 self.assertEqual((-1).bit_length(), 1)
1008 self.assertEqual((2).bit_length(), 2)
1009 self.assertEqual((-2).bit_length(), 2)
1012 self.assertEqual((a-1).bit_length(), i)
1013 self.assertEqual((1-a).bit_length(), i)
1014 self.assertEqual((a).bit_length(), i+1)
1015 self.assertEqual((-a).bit_length(), i+1)
1016 self.assertEqual((a+1).bit_length(), i+1)
1017 self.assertEqual((-a-1).bit_length(), i+1)