Home
last modified time | relevance | path

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

/external/llvm/unittests/Support/
DScaledNumberTest.cpp503 EXPECT_EQ(SP64(0, 0), getDifference64(1, 0, 1, 0)); in TEST()
504 EXPECT_EQ(SP64(1, 0), getDifference64(2, 0, 1, 0)); in TEST()
505 EXPECT_EQ(SP64(53, 0), getDifference64(60, 0, 7, 0)); in TEST()
508 EXPECT_EQ(SP64(0, 0), getDifference64(2, 0, 1, 1)); in TEST()
511 EXPECT_EQ(SP64(1, 0), getDifference64(1, 0, 0, 0)); in TEST()
512 EXPECT_EQ(SP64(8, -3), getDifference64(8, -3, 0, 0)); in TEST()
513 EXPECT_EQ(SP64(UINT64_MAX, 0), getDifference64(UINT64_MAX, 0, 0, 0)); in TEST()
517 getDifference64((UINT64_C(1) << 63) + 1, 1, 1, 0)); in TEST()
519 getDifference64((UINT64_C(1) << 63) + 1, -63, 1, -64)); in TEST()
522 EXPECT_EQ(SP64(UINT64_MAX, 0), getDifference64(1, 64, 1, 0)); in TEST()
[all …]
/external/llvm/include/llvm/Support/
DScaledNumber.h407 inline std::pair<uint64_t, int16_t> getDifference64(uint64_t LDigits, in getDifference64() function