Searched refs:ScaledNumber (Results 1 – 5 of 5) sorted by relevance
/external/llvm/include/llvm/Support/ |
D | ScaledNumber.h | 493 template <class DigitsT> class ScaledNumber : ScaledNumberBase { 511 ScaledNumber() : Digits(0), Scale(0) {} in ScaledNumber() function 513 ScaledNumber(DigitsType Digits, int16_t Scale) in ScaledNumber() function 517 ScaledNumber(const std::pair<DigitsT, int16_t> &X) in ScaledNumber() function 521 static ScaledNumber getZero() { return ScaledNumber(0, 0); } in getZero() 522 static ScaledNumber getOne() { return ScaledNumber(1, 0); } in getOne() 523 static ScaledNumber getLargest() { in getLargest() 524 return ScaledNumber(DigitsLimits::max(), ScaledNumbers::MaxScale); in getLargest() 526 static ScaledNumber get(uint64_t N) { return adjustToWidth(N, 0); } in get() 527 static ScaledNumber getInverse(uint64_t N) { in getInverse() [all …]
|
/external/llvm/unittests/Support/ |
D | ScaledNumberTest.cpp | 536 EXPECT_EQ(ScaledNumber<uint32_t>(10, 0), in TEST() 537 ScaledNumber<uint32_t>(1, 3) + ScaledNumber<uint32_t>(1, 1)); in TEST() 538 EXPECT_EQ(ScaledNumber<uint32_t>(6, 0), in TEST() 539 ScaledNumber<uint32_t>(1, 3) - ScaledNumber<uint32_t>(1, 1)); in TEST() 540 EXPECT_EQ(ScaledNumber<uint32_t>(2, 3), in TEST() 541 ScaledNumber<uint32_t>(1, 3) * ScaledNumber<uint32_t>(1, 1)); in TEST() 542 EXPECT_EQ(ScaledNumber<uint32_t>(1, 2), in TEST() 543 ScaledNumber<uint32_t>(1, 3) / ScaledNumber<uint32_t>(1, 1)); in TEST() 544 EXPECT_EQ(ScaledNumber<uint32_t>(1, 2), ScaledNumber<uint32_t>(1, 3) >> 1); in TEST() 545 EXPECT_EQ(ScaledNumber<uint32_t>(1, 4), ScaledNumber<uint32_t>(1, 3) << 1); in TEST() [all …]
|
/external/llvm/lib/Support/ |
D | CMakeLists.txt | 78 ScaledNumber.cpp
|
/external/llvm/lib/Analysis/ |
D | BlockFrequencyInfoImpl.cpp | 25 ScaledNumber<uint64_t> BlockMass::toScaled() const { in toScaled() 27 return ScaledNumber<uint64_t>(1, 0); in toScaled() 28 return ScaledNumber<uint64_t>(getMass() + 1, -64); in toScaled()
|
/external/llvm/include/llvm/Analysis/ |
D | BlockFrequencyInfoImpl.h | 123 ScaledNumber<uint64_t> toScaled() const; 162 typedef ScaledNumber<uint64_t> Scaled64;
|