Searched refs:getBitsNeeded (Results 1 – 3 of 3) sorted by relevance
/external/llvm/unittests/ADT/ |
D | APIntTest.cpp | 267 EXPECT_EQ(1U, APInt::getBitsNeeded( "0", 2)); in TEST() 268 EXPECT_EQ(1U, APInt::getBitsNeeded( "1", 2)); in TEST() 269 EXPECT_EQ(2U, APInt::getBitsNeeded( "10", 2)); in TEST() 270 EXPECT_EQ(2U, APInt::getBitsNeeded( "11", 2)); in TEST() 271 EXPECT_EQ(3U, APInt::getBitsNeeded("100", 2)); in TEST() 273 EXPECT_EQ(1U, APInt::getBitsNeeded( "+0", 2)); in TEST() 274 EXPECT_EQ(1U, APInt::getBitsNeeded( "+1", 2)); in TEST() 275 EXPECT_EQ(2U, APInt::getBitsNeeded( "+10", 2)); in TEST() 276 EXPECT_EQ(2U, APInt::getBitsNeeded( "+11", 2)); in TEST() 277 EXPECT_EQ(3U, APInt::getBitsNeeded("+100", 2)); in TEST() [all …]
|
/external/llvm/include/llvm/ADT/ |
D | APInt.h | 1206 static unsigned getBitsNeeded(StringRef str, uint8_t radix);
|
/external/llvm/lib/Support/ |
D | APInt.cpp | 610 unsigned APInt::getBitsNeeded(StringRef str, uint8_t radix) { in getBitsNeeded() function in APInt
|