Searched refs:getLg (Results 1 – 2 of 2) sorted by relevance
/external/llvm/unittests/Support/ |
D | ScaledNumberTest.cpp | 193 TEST(ScaledNumberHelpersTest, getLg) { in TEST() argument 194 EXPECT_EQ(0, getLg(UINT32_C(1), 0)); in TEST() 195 EXPECT_EQ(1, getLg(UINT32_C(1), 1)); in TEST() 196 EXPECT_EQ(1, getLg(UINT32_C(2), 0)); in TEST() 197 EXPECT_EQ(3, getLg(UINT32_C(1), 3)); in TEST() 198 EXPECT_EQ(3, getLg(UINT32_C(7), 0)); in TEST() 199 EXPECT_EQ(3, getLg(UINT32_C(8), 0)); in TEST() 200 EXPECT_EQ(3, getLg(UINT32_C(9), 0)); in TEST() 201 EXPECT_EQ(3, getLg(UINT32_C(64), -3)); in TEST() 202 EXPECT_EQ(31, getLg((UINT32_MAX >> 1) + 2, 0)); in TEST() [all …]
|
/external/llvm/include/llvm/Support/ |
D | ScaledNumber.h | 214 template <class DigitsT> int32_t getLg(DigitsT Digits, int16_t Scale) { in getLg() function 554 int32_t lg() const { return ScaledNumbers::getLg(Digits, Scale); } in lg()
|