Home
last modified time | relevance | path

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

/external/llvm/unittests/Support/
DBranchProbabilityTest.cpp149 TEST(BranchProbabilityTest, scaleByInverse) { in TEST() argument
151 EXPECT_EQ(UINT64_MAX, BP(1, 1).scaleByInverse(UINT64_MAX)); in TEST()
152 EXPECT_EQ(UINT64_MAX, BP(7, 7).scaleByInverse(UINT64_MAX)); in TEST()
153 EXPECT_EQ(UINT32_MAX, BP(1, 1).scaleByInverse(UINT32_MAX)); in TEST()
154 EXPECT_EQ(UINT32_MAX, BP(7, 7).scaleByInverse(UINT32_MAX)); in TEST()
155 EXPECT_EQ(0u, BP(1, 1).scaleByInverse(0)); in TEST()
156 EXPECT_EQ(0u, BP(7, 7).scaleByInverse(0)); in TEST()
159 EXPECT_EQ(UINT64_MAX, BP(1, UINT32_MAX).scaleByInverse(UINT64_MAX)); in TEST()
161 BP(1, UINT32_MAX).scaleByInverse(UINT32_MAX)); in TEST()
162 EXPECT_EQ(UINT32_MAX, BP(1, UINT32_MAX).scaleByInverse(1)); in TEST()
[all …]
/external/llvm/lib/Support/
DBlockFrequency.cpp34 Frequency = Prob.scaleByInverse(Frequency); in operator /=()
DBranchProbability.cpp71 uint64_t BranchProbability::scaleByInverse(uint64_t Num) const { in scaleByInverse() function in BranchProbability
/external/llvm/include/llvm/Support/
DBranchProbability.h67 uint64_t scaleByInverse(uint64_t Num) const;
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()