Home
last modified time | relevance | path

Searched refs:scaleByInverse (Results 1 – 5 of 5) sorted by relevance

/external/llvm/unittests/Support/
DBranchProbabilityTest.cpp155 TEST(BranchProbabilityTest, scaleByInverse) { in TEST() argument
157 EXPECT_EQ(UINT64_MAX, BP(1, 1).scaleByInverse(UINT64_MAX)); in TEST()
158 EXPECT_EQ(UINT64_MAX, BP(7, 7).scaleByInverse(UINT64_MAX)); in TEST()
159 EXPECT_EQ(UINT32_MAX, BP(1, 1).scaleByInverse(UINT32_MAX)); in TEST()
160 EXPECT_EQ(UINT32_MAX, BP(7, 7).scaleByInverse(UINT32_MAX)); in TEST()
161 EXPECT_EQ(0u, BP(1, 1).scaleByInverse(0)); in TEST()
162 EXPECT_EQ(0u, BP(7, 7).scaleByInverse(0)); in TEST()
167 EXPECT_EQ(UINT64_MAX, BP(1, UINT32_MAX).scaleByInverse(UINT64_MAX)); in TEST()
169 BP(1, MAX_DENOMINATOR).scaleByInverse(UINT32_MAX)); in TEST()
170 EXPECT_EQ(MAX_DENOMINATOR, BP(1, MAX_DENOMINATOR).scaleByInverse(1)); in TEST()
[all …]
/external/llvm/lib/Support/
DBlockFrequency.cpp32 Frequency = Prob.scaleByInverse(Frequency); in operator /=()
DBranchProbability.cpp112 uint64_t BranchProbability::scaleByInverse(uint64_t Num) const { in scaleByInverse() function in BranchProbability
/external/llvm/include/llvm/Support/
DScaledNumber.h655 uint64_t scaleByInverse(uint64_t N) const { in scaleByInverse() function
664 int64_t scaleByInverse(int64_t N) const { in scaleByInverse() function
666 return joinSigned(scaleByInverse(Unsigned.first), Unsigned.second); in scaleByInverse()
DBranchProbability.h90 uint64_t scaleByInverse(uint64_t Num) const;