Searched refs:getQuotient32 (Results 1 – 2 of 2) sorted by relevance
/external/llvm/unittests/Support/ |
D | ScaledNumberTest.cpp | 136 EXPECT_EQ(SP32(0, 0), getQuotient32(0, 0)); in TEST() 137 EXPECT_EQ(SP32(0, 0), getQuotient32(0, 1)); in TEST() 138 EXPECT_EQ(SP32(0, 0), getQuotient32(0, 73)); in TEST() 139 EXPECT_EQ(SP32(UINT32_MAX, MaxScale), getQuotient32(1, 0)); in TEST() 140 EXPECT_EQ(SP32(UINT32_MAX, MaxScale), getQuotient32(6, 0)); in TEST() 143 EXPECT_EQ(SP32(1u << 31, -31), getQuotient32(1, 1)); in TEST() 144 EXPECT_EQ(SP32(1u << 31, -30), getQuotient32(2, 1)); in TEST() 145 EXPECT_EQ(SP32(1u << 31, -33), getQuotient32(4, 16)); in TEST() 146 EXPECT_EQ(SP32(7u << 29, -29), getQuotient32(7, 1)); in TEST() 147 EXPECT_EQ(SP32(7u << 29, -30), getQuotient32(7, 2)); in TEST() [all …]
|
/external/llvm/include/llvm/Support/ |
D | ScaledNumber.h | 171 inline std::pair<uint32_t, int16_t> getQuotient32(uint32_t Dividend, in getQuotient32() function
|