Searched refs:Two31 (Results 1 – 2 of 2) sorted by relevance
/external/llvm/unittests/Support/ |
D | BranchProbabilityTest.cpp | 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() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/ |
D | BranchProbabilityTest.cpp | 188 auto Two31 = UINT64_C(1) << 31; in TEST() local 194 EXPECT_EQ(1u, BP(Two31, UINT32_MAX).scale(2)); in TEST() 195 EXPECT_EQ(Two31, BP(Two31, UINT32_MAX).scale(Two31 * 2)); in TEST() 196 EXPECT_EQ(9223372036854775807ULL, BP(Two31, UINT32_MAX).scale(UINT64_MAX)); in TEST() 200 BP(Two31 + 1, UINT32_MAX - 2).scale(UINT64_MAX)); in TEST() 221 auto Two31 = UINT64_C(1) << 31; in TEST() local 228 EXPECT_EQ(2u, BP(Two31, UINT32_MAX).scaleByInverse(1)); in TEST() 229 EXPECT_EQ(2u, BP(Two31 - 1, UINT32_MAX).scaleByInverse(1)); in TEST() 230 EXPECT_EQ(Two31 * 2, BP(Two31, UINT32_MAX).scaleByInverse(Two31)); in TEST() 231 EXPECT_EQ(Two31 * 2, BP(Two31 - 1, UINT32_MAX).scaleByInverse(Two31)); in TEST() [all …]
|