Searched refs:getLgCeiling (Results 1 – 2 of 2) sorted by relevance
/external/llvm/unittests/Support/ |
D | ScaledNumberTest.cpp | 257 TEST(ScaledNumberHelpersTest, getLgCeiling) { in TEST() argument 258 EXPECT_EQ(0, getLgCeiling(UINT32_C(1), 0)); in TEST() 259 EXPECT_EQ(1, getLgCeiling(UINT32_C(1), 1)); in TEST() 260 EXPECT_EQ(1, getLgCeiling(UINT32_C(2), 0)); in TEST() 261 EXPECT_EQ(3, getLgCeiling(UINT32_C(1), 3)); in TEST() 262 EXPECT_EQ(3, getLgCeiling(UINT32_C(7), 0)); in TEST() 263 EXPECT_EQ(3, getLgCeiling(UINT32_C(8), 0)); in TEST() 264 EXPECT_EQ(3, getLgCeiling(UINT32_C(64), -3)); in TEST() 265 EXPECT_EQ(4, getLgCeiling(UINT32_C(9), 0)); in TEST() 266 EXPECT_EQ(32, getLgCeiling(UINT32_MAX, 0)); in TEST() [all …]
|
/external/llvm/include/llvm/Support/ |
D | ScaledNumber.h | 233 template <class DigitsT> int32_t getLgCeiling(DigitsT Digits, int16_t Scale) { in getLgCeiling() function 565 return ScaledNumbers::getLgCeiling(Digits, Scale); in lgCeiling()
|