Home
last modified time | relevance | path

Searched refs:getRounded32 (Results 1 – 2 of 2) sorted by relevance

/external/llvm/unittests/Support/
DScaledNumberTest.cpp43 EXPECT_EQ(getRounded32(0, 0, false), SP32(0, 0)); in TEST()
44 EXPECT_EQ(getRounded32(0, 0, true), SP32(1, 0)); in TEST()
45 EXPECT_EQ(getRounded32(20, 21, true), SP32(21, 21)); in TEST()
46 EXPECT_EQ(getRounded32(UINT32_MAX, 0, false), SP32(UINT32_MAX, 0)); in TEST()
47 EXPECT_EQ(getRounded32(UINT32_MAX, 0, true), SP32(1 << 31, 1)); in TEST()
/external/llvm/include/llvm/Support/
DScaledNumber.h65 inline std::pair<uint32_t, int16_t> getRounded32(uint32_t Digits, int16_t Scale, in getRounded32() function