Home
last modified time | relevance | path

Searched refs:Two63 (Results 1 – 2 of 2) sorted by relevance

/external/llvm/unittests/Support/
DBranchProbabilityTest.cpp139 auto Two63 = UINT64_C(1) << 63; in TEST() local
143 EXPECT_EQ(Two63 - 1, BP(1, 2).scale(UINT64_MAX)); in TEST()
172 auto Two63 = UINT64_C(1) << 63; in TEST() local
176 EXPECT_EQ(UINT64_MAX - 1, BP(1, 2).scaleByInverse(Two63 - 1)); in TEST()
177 EXPECT_EQ(UINT64_MAX, BP(1, 2).scaleByInverse(Two63)); in TEST()
184 EXPECT_EQ(UINT64_MAX, BP(Two31, UINT32_MAX).scaleByInverse(Two63 + Two31)); in TEST()
192 BP(Two31 + 1, UINT32_MAX).scaleByInverse(Two63 + Two31)); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/
DBranchProbabilityTest.cpp187 auto Two63 = UINT64_C(1) << 63; in TEST() local
191 EXPECT_EQ(Two63 - 1, BP(1, 2).scale(UINT64_MAX)); in TEST()
220 auto Two63 = UINT64_C(1) << 63; in TEST() local
224 EXPECT_EQ(UINT64_MAX - 1, BP(1, 2).scaleByInverse(Two63 - 1)); in TEST()
225 EXPECT_EQ(UINT64_MAX, BP(1, 2).scaleByInverse(Two63)); in TEST()
232 EXPECT_EQ(UINT64_MAX, BP(Two31, UINT32_MAX).scaleByInverse(Two63 + Two31)); in TEST()
240 BP(Two31 + 1, UINT32_MAX).scaleByInverse(Two63 + Two31)); in TEST()