Searched refs:getDifference32 (Results 1 – 2 of 2) sorted by relevance
/external/llvm/unittests/Support/ |
D | ScaledNumberTest.cpp | 467 EXPECT_EQ(SP32(0, 0), getDifference32(1, 0, 1, 0)); in TEST() 468 EXPECT_EQ(SP32(1, 0), getDifference32(2, 0, 1, 0)); in TEST() 469 EXPECT_EQ(SP32(53, 0), getDifference32(60, 0, 7, 0)); in TEST() 472 EXPECT_EQ(SP32(0, 0), getDifference32(2, 0, 1, 1)); in TEST() 475 EXPECT_EQ(SP32(1, 0), getDifference32(1, 0, 0, 0)); in TEST() 476 EXPECT_EQ(SP32(8, -3), getDifference32(8, -3, 0, 0)); in TEST() 477 EXPECT_EQ(SP32(UINT32_MAX, 0), getDifference32(UINT32_MAX, 0, 0, 0)); in TEST() 481 getDifference32((UINT32_C(1) << 31) + 1, 1, 1, 0)); in TEST() 483 getDifference32((UINT32_C(1) << 31) + 1, -31, 1, -32)); in TEST() 486 EXPECT_EQ(SP32(UINT32_MAX, 0), getDifference32(1, 32, 1, 0)); in TEST() [all …]
|
/external/llvm/include/llvm/Support/ |
D | ScaledNumber.h | 399 inline std::pair<uint32_t, int16_t> getDifference32(uint32_t LDigits, in getDifference32() function
|