/external/llvm/unittests/Support/ |
MathExtrasTest.cpp | 37 TEST(MathExtras, countLeadingZeros) { 42 EXPECT_EQ(8u, countLeadingZeros(Z8)); 43 EXPECT_EQ(16u, countLeadingZeros(Z16)); 44 EXPECT_EQ(32u, countLeadingZeros(Z32)); 45 EXPECT_EQ(64u, countLeadingZeros(Z64)); 51 EXPECT_EQ(2u, countLeadingZeros(NZ8)); 52 EXPECT_EQ(10u, countLeadingZeros(NZ16)); 53 EXPECT_EQ(26u, countLeadingZeros(NZ32)); 54 EXPECT_EQ(58u, countLeadingZeros(NZ64)); 56 EXPECT_EQ(8u, countLeadingZeros(0x00F000FFu)) [all...] |
/external/v8/src/ |
compiler-intrinsics.h | 42 INLINE(static int CountLeadingZeros(uint32_t value)); 50 int CompilerIntrinsics::CountLeadingZeros(uint32_t value) { 65 int CompilerIntrinsics::CountLeadingZeros(uint32_t value) {
|
/external/chromium_org/v8/src/ |
compiler-intrinsics.h | 42 INLINE(static int CountLeadingZeros(uint32_t value)); 53 int CompilerIntrinsics::CountLeadingZeros(uint32_t value) { 72 int CompilerIntrinsics::CountLeadingZeros(uint32_t value) {
|
/external/llvm/include/llvm/Support/ |
MathExtras.h | 119 countLeadingZeros(T Val, ZeroBehavior ZB = ZB_Width) { 141 countLeadingZeros(T Val, ZeroBehavior ZB = ZB_Width) LLVM_DELETED_FUNCTION; 145 inline std::size_t countLeadingZeros<uint32_t>(uint32_t Val, ZeroBehavior ZB) { 160 inline std::size_t countLeadingZeros<uint64_t>(uint64_t Val, ZeroBehavior ZB) { 214 return countLeadingZeros(Val, ZB_Undefined) ^ 386 return countLeadingZeros(~Value); 394 return countLeadingZeros(~Value); 443 return 31 - countLeadingZeros(Value); 449 return 63 - countLeadingZeros(Value); 456 return 32 - countLeadingZeros(Value - 1) [all...] |
/external/llvm/unittests/ADT/ |
APIntTest.cpp | 33 EXPECT_EQ(0u, Minus1.countLeadingZeros()); 47 EXPECT_EQ(0u, i33minus2.countLeadingZeros()); 60 EXPECT_EQ(65u, i65.countLeadingZeros()); 69 EXPECT_EQ(0u, i65minus.countLeadingZeros()); 79 EXPECT_EQ(0u, u128max.countLeadingZeros()); 86 EXPECT_EQ(64u, u64max.countLeadingZeros()); 95 EXPECT_EQ(128u, zero.countLeadingZeros()); 105 EXPECT_EQ(127u, one.countLeadingZeros());
|
/external/chromium_org/third_party/WebKit/Source/wtf/ |
BitwiseOperations.h | 35 // countLeadingZeros() is a bitwise operation that counts the number of leading
|
PartitionAllocTest.cpp | 693 // Tests that the countLeadingZeros() functions work to our satisfaction.
|
/external/llvm/lib/Target/XCore/ |
XCoreISelDAGToDAG.cpp | 62 int msksize = 32 - countLeadingZeros(value); 118 SDValue MskSize = getI32Imm(32 - countLeadingZeros((uint32_t)Val));
|
/external/llvm/include/llvm/ADT/ |
APInt.h | 213 /// out-of-line slow case for countLeadingZeros [all...] |
/external/llvm/lib/Target/ARM/ |
Thumb2InstrInfo.cpp | 288 unsigned RotAmt = countLeadingZeros(ThisVal); 305 unsigned RotAmt = countLeadingZeros(ThisVal); 487 unsigned RotAmt = countLeadingZeros<unsigned>(Offset);
|
ARMCodeEmitter.cpp | [all...] |
/external/llvm/include/llvm/Analysis/ |
BlockFrequencyImpl.h | 250 unsigned Shift = 32 - countLeadingZeros(D);
|
/external/llvm/lib/Target/PowerPC/ |
PPCISelDAGToDAG.cpp | 338 MB = countLeadingZeros(Val); 340 ME = countLeadingZeros((Val - 1) ^ Val); 346 ME = countLeadingZeros(Val) - 1; 348 MB = countLeadingZeros((Val - 1) ^ Val) + 1; [all...] |
/external/llvm/lib/Transforms/InstCombine/ |
InstCombineSimplifyDemanded.cpp | 492 unsigned NLZ = DemandedMask.countLeadingZeros(); 572 uint32_t NLZ = DemandedMask.countLeadingZeros(); 679 if (DemandedMask.countLeadingZeros() <= ShiftAmt) [all...] |
InstCombineAndOrXor.cpp | 324 MB = BitWidth - ((V - 1) ^ V).countLeadingZeros(); 354 if ((Mask->getValue().countLeadingZeros() + 374 if ((Mask->getValue().countLeadingZeros() + [all...] |
/external/llvm/lib/Analysis/ |
ValueTracking.cpp | 57 unsigned NLZ = (CLHS->getValue()+1).countLeadingZeros(); 66 unsigned NLZ2 = CLHS->getValue().countLeadingZeros(); 207 unsigned LeadingZeros = (Upper->getValue() - 1).countLeadingZeros(); 398 unsigned RHSUnknownLeadingOnes = KnownOne2.countLeadingZeros(); [all...] |
ConstantFolding.cpp | [all...] |
/external/llvm/lib/Support/ |
APInt.cpp | 695 return llvm::countLeadingZeros(MSW) - (APINT_BITS_PER_WORD - BitsInMSW); 702 Count += llvm::countLeadingZeros(pVal[i-1]); [all...] |
ConstantRange.cpp | 688 APInt Zeros(getBitWidth(), getUnsignedMax().countLeadingZeros());
|
/external/llvm/lib/Target/ARM/MCTargetDesc/ |
ARMAddressingModes.h | 299 unsigned RotAmt = countLeadingZeros(V);
|
ARMMCCodeEmitter.cpp | [all...] |
/external/llvm/lib/Target/ARM/InstPrinter/ |
ARMInstPrinter.cpp | 669 int32_t width = (32 - countLeadingZeros (v)) - lsb; [all...] |
/external/llvm/lib/CodeGen/SelectionDAG/ |
SelectionDAG.cpp | [all...] |
/external/clang/lib/CodeGen/ |
CGExprCXX.cpp | 622 numElementsWidth - sizeWidth > count.countLeadingZeros()) [all...] |
/external/clang/lib/Lex/ |
LiteralSupport.cpp | [all...] |