Searched refs:SP32 (Results 1 – 1 of 1) sorted by relevance
/external/llvm/unittests/Support/ |
D | ScaledNumberTest.cpp | 39 typedef ScaledPair<uint32_t> SP32; typedef 43 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() 60 EXPECT_EQ(getAdjusted32(0), SP32(0, 0)); in TEST() 61 EXPECT_EQ(getAdjusted32(0, 5), SP32(0, 5)); in TEST() 62 EXPECT_EQ(getAdjusted32(UINT32_MAX), SP32(UINT32_MAX, 0)); in TEST() 63 EXPECT_EQ(getAdjusted32(Max32In64 << 1), SP32(UINT32_MAX, 1)); in TEST() [all …]
|