Searched refs:nearestLogBase2 (Results 1 – 3 of 3) sorted by relevance
| /llvm-project-15.0.7/llvm/unittests/ADT/ |
| H A D | APIntTest.cpp | 1642 TEST(APIntTest, nearestLogBase2) { in TEST() argument 1648 EXPECT_EQ(A1.nearestLogBase2(), A1.ceilLogBase2()); in TEST() 1653 EXPECT_EQ(A2.nearestLogBase2(), A2.logBase2()); in TEST() 1658 EXPECT_EQ(A3.nearestLogBase2(), A3.ceilLogBase2()); in TEST() 1665 EXPECT_EQ(A4.nearestLogBase2(), A4.ceilLogBase2()); in TEST() 1670 EXPECT_EQ(A5.nearestLogBase2(), A5.logBase2()); in TEST() 1675 EXPECT_EQ(A6.nearestLogBase2(), A6.ceilLogBase2()); in TEST() 1679 EXPECT_EQ(A7.nearestLogBase2(), 0ULL); in TEST() 1681 EXPECT_EQ(A8.nearestLogBase2(), UINT32_MAX); in TEST() 1686 EXPECT_EQ(A9.nearestLogBase2(), UINT32_MAX); in TEST()
|
| /llvm-project-15.0.7/llvm/include/llvm/ADT/ |
| H A D | APInt.h | 1670 unsigned nearestLogBase2() const;
|
| /llvm-project-15.0.7/llvm/lib/Support/ |
| H A D | APInt.cpp | 1134 unsigned APInt::nearestLogBase2() const { in nearestLogBase2() function in APInt
|