Home
last modified time | relevance | path

Searched refs:CountLeadingZeros_32 (Results 1 – 12 of 12) sorted by relevance

/external/llvm/unittests/Support/
DMathExtrasTest.cpp41 TEST(MathExtras, CountLeadingZeros_32) { in TEST() argument
42 EXPECT_EQ(8u, CountLeadingZeros_32(0x00F000FF)); in TEST()
43 EXPECT_EQ(8u, CountLeadingZeros_32(0x00F12345)); in TEST()
45 EXPECT_EQ(31 - i, CountLeadingZeros_32(1 << i)); in TEST()
/external/llvm/include/llvm/Support/
DMathExtras.h160 inline unsigned CountLeadingZeros_32(uint32_t Value) { in CountLeadingZeros_32() function
189 return CountLeadingZeros_32(~Value); in CountLeadingOnes_32()
224 Count = CountLeadingZeros_32(Hi); in CountLeadingZeros_64()
229 Count = CountLeadingZeros_32(Lo)+32; in CountLeadingZeros_64()
326 return 31 - CountLeadingZeros_32(Value); in Log2_32()
339 return 32-CountLeadingZeros_32(Value-1); in Log2_32_Ceil()
/external/llvm/lib/Target/XCore/
DXCoreISelDAGToDAG.cpp64 int msksize = 32 - CountLeadingZeros_32(value); in immMskBitp()
164 SDValue MskSize = getI32Imm(32 - CountLeadingZeros_32(Val)); in Select()
DXCoreInstrInfo.td87 return getI32Imm(32 - CountLeadingZeros_32(N->getZExtValue()));
/external/llvm/lib/Target/ARM/
DThumb2InstrInfo.cpp253 unsigned RotAmt = CountLeadingZeros_32(ThisVal); in emitT2RegPlusImmediate()
270 unsigned RotAmt = CountLeadingZeros_32(ThisVal); in emitT2RegPlusImmediate()
452 unsigned RotAmt = CountLeadingZeros_32(Offset); in rewriteT2FrameIndex()
DARMCodeEmitter.cpp1137 int32_t msb = (32 - CountLeadingZeros_32(v)) - 1; in emitDataProcessingInstruction()
DARMISelLowering.cpp7833 unsigned Width = (32 - CountLeadingZeros_32(~InvMask)) - LSB; in PerformBFICombine()
/external/llvm/lib/Target/PowerPC/
DPPCISelDAGToDAG.cpp329 MB = CountLeadingZeros_32(Val); in isRunOfOnes()
331 ME = CountLeadingZeros_32((Val - 1) ^ Val); in isRunOfOnes()
337 ME = CountLeadingZeros_32(Val) - 1; in isRunOfOnes()
339 MB = CountLeadingZeros_32((Val - 1) ^ Val) + 1; in isRunOfOnes()
/external/llvm/lib/Target/ARM/MCTargetDesc/
DARMAddressingModes.h299 unsigned RotAmt = CountLeadingZeros_32(V); in getT2SOImmValRotateVal()
DARMMCCodeEmitter.cpp1346 uint32_t msb = (32 - CountLeadingZeros_32 (v)) - 1; in getBitfieldInvertedMaskOpValue()
/external/llvm/lib/Target/ARM/InstPrinter/
DARMInstPrinter.cpp586 int32_t width = (32 - CountLeadingZeros_32 (v)) - lsb; in printBitfieldInvMaskImmOperand()
/external/llvm/lib/Support/
DAPInt.cpp1515 unsigned shift = CountLeadingZeros_32(v[n-1]); in KnuthDiv()