OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:getLgFloor
(Results
1 - 2
of
2
) sorted by null
/external/llvm/unittests/Support/
ScaledNumberTest.cpp
227
TEST(ScaledNumberHelpersTest,
getLgFloor
) {
228
EXPECT_EQ(0,
getLgFloor
(UINT32_C(1), 0));
229
EXPECT_EQ(1,
getLgFloor
(UINT32_C(1), 1));
230
EXPECT_EQ(1,
getLgFloor
(UINT32_C(2), 0));
231
EXPECT_EQ(2,
getLgFloor
(UINT32_C(7), 0));
232
EXPECT_EQ(3,
getLgFloor
(UINT32_C(1), 3));
233
EXPECT_EQ(3,
getLgFloor
(UINT32_C(8), 0));
234
EXPECT_EQ(3,
getLgFloor
(UINT32_C(9), 0));
235
EXPECT_EQ(3,
getLgFloor
(UINT32_C(64), -3));
236
EXPECT_EQ(31,
getLgFloor
((UINT32_MAX >> 1) + 2, 0))
[
all
...]
/external/llvm/include/llvm/Support/
ScaledNumber.h
223
template <class DigitsT> int32_t
getLgFloor
(DigitsT Digits, int16_t Scale) {
261
// Check for the scale. Use
getLgFloor
to be sure that the scale difference
263
int32_t lgL =
getLgFloor
(LDigits, LScale), lgR =
getLgFloor
(RDigits, RScale);
391
const auto RLgFloor =
getLgFloor
(SavedRDigits, SavedRScale);
559
int32_t lgFloor() const { return ScaledNumbers::
getLgFloor
(Digits, Scale); }
Completed in 789 milliseconds