Home
last modified time | relevance | path

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

/external/llvm/unittests/Support/
DScaledNumberTest.cpp84 EXPECT_EQ(SP32(0, 0), getProduct32(0, 0)); in TEST()
85 EXPECT_EQ(SP32(0, 0), getProduct32(0, 1)); in TEST()
86 EXPECT_EQ(SP32(0, 0), getProduct32(0, 33)); in TEST()
89 EXPECT_EQ(SP32(6, 0), getProduct32(2, 3)); in TEST()
91 getProduct32(UINT16_MAX / 3, UINT16_MAX / 5 * 2)); in TEST()
98 EXPECT_EQ(SP32(0xf00f1001, 4), getProduct32(0xf00010, 0x1001)); in TEST()
105 EXPECT_EQ(SP32(0xf00f0700, 8), getProduct32(0xf000070, 0x1001)); in TEST()
112 EXPECT_EQ(SP32(0xf00f0801, 8), getProduct32(0xf000080, 0x1001)); in TEST()
115 EXPECT_EQ(SP32(0, 0), getProduct32(1, 0)); in TEST()
116 EXPECT_EQ(SP32(0, 0), getProduct32(33, 0)); in TEST()
[all …]
/external/llvm/include/llvm/Support/
DScaledNumber.h126 inline std::pair<uint32_t, int16_t> getProduct32(uint32_t LHS, uint32_t RHS) { in getProduct32() function