Searched refs:getBitsNeeded (Results 1 – 3 of 3) sorted by relevance
/external/llvm/unittests/ADT/ |
D | APIntTest.cpp | 579 EXPECT_EQ(1U, APInt::getBitsNeeded( "0", 2)); in TEST() 580 EXPECT_EQ(1U, APInt::getBitsNeeded( "1", 2)); in TEST() 581 EXPECT_EQ(2U, APInt::getBitsNeeded( "10", 2)); in TEST() 582 EXPECT_EQ(2U, APInt::getBitsNeeded( "11", 2)); in TEST() 583 EXPECT_EQ(3U, APInt::getBitsNeeded("100", 2)); in TEST() 585 EXPECT_EQ(1U, APInt::getBitsNeeded( "+0", 2)); in TEST() 586 EXPECT_EQ(1U, APInt::getBitsNeeded( "+1", 2)); in TEST() 587 EXPECT_EQ(2U, APInt::getBitsNeeded( "+10", 2)); in TEST() 588 EXPECT_EQ(2U, APInt::getBitsNeeded( "+11", 2)); in TEST() 589 EXPECT_EQ(3U, APInt::getBitsNeeded("+100", 2)); in TEST() [all …]
|
/external/llvm/include/llvm/ADT/ |
D | APInt.h | 1352 static unsigned getBitsNeeded(StringRef str, uint8_t radix);
|
/external/llvm/lib/Support/ |
D | APInt.cpp | 615 unsigned APInt::getBitsNeeded(StringRef str, uint8_t radix) { in getBitsNeeded() function in APInt
|