Searched refs:getLgFloor (Results 1 – 2 of 2) sorted by relevance
/external/llvm/unittests/Support/ |
D | ScaledNumberTest.cpp | 227 TEST(ScaledNumberHelpersTest, getLgFloor) { in TEST() argument 228 EXPECT_EQ(0, getLgFloor(UINT32_C(1), 0)); in TEST() 229 EXPECT_EQ(1, getLgFloor(UINT32_C(1), 1)); in TEST() 230 EXPECT_EQ(1, getLgFloor(UINT32_C(2), 0)); in TEST() 231 EXPECT_EQ(2, getLgFloor(UINT32_C(7), 0)); in TEST() 232 EXPECT_EQ(3, getLgFloor(UINT32_C(1), 3)); in TEST() 233 EXPECT_EQ(3, getLgFloor(UINT32_C(8), 0)); in TEST() 234 EXPECT_EQ(3, getLgFloor(UINT32_C(9), 0)); in TEST() 235 EXPECT_EQ(3, getLgFloor(UINT32_C(64), -3)); in TEST() 236 EXPECT_EQ(31, getLgFloor((UINT32_MAX >> 1) + 2, 0)); in TEST() [all …]
|
/external/llvm/include/llvm/Support/ |
D | ScaledNumber.h | 223 template <class DigitsT> int32_t getLgFloor(DigitsT Digits, int16_t Scale) { in getLgFloor() function 263 int32_t lgL = getLgFloor(LDigits, LScale), lgR = getLgFloor(RDigits, RScale); in compare() 391 const auto RLgFloor = getLgFloor(SavedRDigits, SavedRScale); in getDifference() 559 int32_t lgFloor() const { return ScaledNumbers::getLgFloor(Digits, Scale); } in lgFloor()
|