Lines Matching refs:Two31
140 auto Two31 = UINT64_C(1) << 31; in TEST() local
146 EXPECT_EQ(1u, BP(Two31, UINT32_MAX).scale(2)); in TEST()
147 EXPECT_EQ(Two31, BP(Two31, UINT32_MAX).scale(Two31 * 2)); in TEST()
148 EXPECT_EQ(9223372036854775807ULL, BP(Two31, UINT32_MAX).scale(UINT64_MAX)); in TEST()
152 BP(Two31 + 1, UINT32_MAX - 2).scale(UINT64_MAX)); in TEST()
173 auto Two31 = UINT64_C(1) << 31; in TEST() local
180 EXPECT_EQ(2u, BP(Two31, UINT32_MAX).scaleByInverse(1)); in TEST()
181 EXPECT_EQ(2u, BP(Two31 - 1, UINT32_MAX).scaleByInverse(1)); in TEST()
182 EXPECT_EQ(Two31 * 2, BP(Two31, UINT32_MAX).scaleByInverse(Two31)); in TEST()
183 EXPECT_EQ(Two31 * 2, BP(Two31 - 1, UINT32_MAX).scaleByInverse(Two31)); in TEST()
184 EXPECT_EQ(UINT64_MAX, BP(Two31, UINT32_MAX).scaleByInverse(Two63 + Two31)); in TEST()
189 BP(Two31 + 2, UINT32_MAX - 2) in TEST()
192 BP(Two31 + 1, UINT32_MAX).scaleByInverse(Two63 + Two31)); in TEST()