Searched refs:getBitsNeeded (Results 1 – 3 of 3) sorted by relevance
/external/llvm/unittests/ADT/ |
D | APIntTest.cpp | 303 EXPECT_EQ(1U, APInt::getBitsNeeded( "0", 2)); in TEST() 304 EXPECT_EQ(1U, APInt::getBitsNeeded( "1", 2)); in TEST() 305 EXPECT_EQ(2U, APInt::getBitsNeeded( "10", 2)); in TEST() 306 EXPECT_EQ(2U, APInt::getBitsNeeded( "11", 2)); in TEST() 307 EXPECT_EQ(3U, APInt::getBitsNeeded("100", 2)); in TEST() 309 EXPECT_EQ(1U, APInt::getBitsNeeded( "+0", 2)); in TEST() 310 EXPECT_EQ(1U, APInt::getBitsNeeded( "+1", 2)); in TEST() 311 EXPECT_EQ(2U, APInt::getBitsNeeded( "+10", 2)); in TEST() 312 EXPECT_EQ(2U, APInt::getBitsNeeded( "+11", 2)); in TEST() 313 EXPECT_EQ(3U, APInt::getBitsNeeded("+100", 2)); in TEST() [all …]
|
/external/llvm/include/llvm/ADT/ |
D | APInt.h | 1326 static unsigned getBitsNeeded(StringRef str, uint8_t radix);
|
/external/llvm/lib/Support/ |
D | APInt.cpp | 611 unsigned APInt::getBitsNeeded(StringRef str, uint8_t radix) { in getBitsNeeded() function in APInt
|