Home
last modified time | relevance | path

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

/external/llvm/unittests/Support/
DScaledNumberTest.cpp227 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-project/llvm/unittests/Support/
DScaledNumberTest.cpp226 TEST(ScaledNumberHelpersTest, getLgFloor) { in TEST() argument
227 EXPECT_EQ(0, getLgFloor(UINT32_C(1), 0)); in TEST()
228 EXPECT_EQ(1, getLgFloor(UINT32_C(1), 1)); in TEST()
229 EXPECT_EQ(1, getLgFloor(UINT32_C(2), 0)); in TEST()
230 EXPECT_EQ(2, getLgFloor(UINT32_C(7), 0)); in TEST()
231 EXPECT_EQ(3, getLgFloor(UINT32_C(1), 3)); in TEST()
232 EXPECT_EQ(3, getLgFloor(UINT32_C(8), 0)); in TEST()
233 EXPECT_EQ(3, getLgFloor(UINT32_C(9), 0)); in TEST()
234 EXPECT_EQ(3, getLgFloor(UINT32_C(64), -3)); in TEST()
235 EXPECT_EQ(31, getLgFloor((UINT32_MAX >> 1) + 2, 0)); in TEST()
[all …]
/external/llvm/include/llvm/Support/
DScaledNumber.h223 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()
/external/llvm-project/llvm/include/llvm/Support/
DScaledNumber.h222 template <class DigitsT> int32_t getLgFloor(DigitsT Digits, int16_t Scale) { in getLgFloor() function
262 int32_t lgL = getLgFloor(LDigits, LScale), lgR = getLgFloor(RDigits, RScale); in compare()
390 const auto RLgFloor = getLgFloor(SavedRDigits, SavedRScale); in getDifference()
558 int32_t lgFloor() const { return ScaledNumbers::getLgFloor(Digits, Scale); } in lgFloor()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DScaledNumber.h222 template <class DigitsT> int32_t getLgFloor(DigitsT Digits, int16_t Scale) { in getLgFloor() function
262 int32_t lgL = getLgFloor(LDigits, LScale), lgR = getLgFloor(RDigits, RScale); in compare()
390 const auto RLgFloor = getLgFloor(SavedRDigits, SavedRScale); in getDifference()
558 int32_t lgFloor() const { return ScaledNumbers::getLgFloor(Digits, Scale); } in lgFloor()