Home
last modified time | relevance | path

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

/external/llvm/unittests/Support/
DScaledNumberTest.cpp468 EXPECT_EQ(SP32(0, 0), getDifference32(1, 0, 1, 0)); in TEST()
469 EXPECT_EQ(SP32(1, 0), getDifference32(2, 0, 1, 0)); in TEST()
470 EXPECT_EQ(SP32(53, 0), getDifference32(60, 0, 7, 0)); in TEST()
473 EXPECT_EQ(SP32(0, 0), getDifference32(2, 0, 1, 1)); in TEST()
476 EXPECT_EQ(SP32(1, 0), getDifference32(1, 0, 0, 0)); in TEST()
477 EXPECT_EQ(SP32(8, -3), getDifference32(8, -3, 0, 0)); in TEST()
478 EXPECT_EQ(SP32(UINT32_MAX, 0), getDifference32(UINT32_MAX, 0, 0, 0)); in TEST()
482 getDifference32((UINT32_C(1) << 31) + 1, 1, 1, 0)); in TEST()
484 getDifference32((UINT32_C(1) << 31) + 1, -31, 1, -32)); in TEST()
487 EXPECT_EQ(SP32(UINT32_MAX, 0), getDifference32(1, 32, 1, 0)); in TEST()
[all …]
/external/llvm/include/llvm/Support/
DScaledNumber.h400 inline std::pair<uint32_t, int16_t> getDifference32(uint32_t LDigits, in getDifference32() function