Searched refs:CountLeadingZeros_32 (Results 1 – 12 of 12) sorted by relevance
41 TEST(MathExtras, CountLeadingZeros_32) { in TEST() argument42 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()
160 inline unsigned CountLeadingZeros_32(uint32_t Value) { in CountLeadingZeros_32() function189 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()
64 int msksize = 32 - CountLeadingZeros_32(value); in immMskBitp()164 SDValue MskSize = getI32Imm(32 - CountLeadingZeros_32(Val)); in Select()
87 return getI32Imm(32 - CountLeadingZeros_32(N->getZExtValue()));
253 unsigned RotAmt = CountLeadingZeros_32(ThisVal); in emitT2RegPlusImmediate()270 unsigned RotAmt = CountLeadingZeros_32(ThisVal); in emitT2RegPlusImmediate()452 unsigned RotAmt = CountLeadingZeros_32(Offset); in rewriteT2FrameIndex()
1137 int32_t msb = (32 - CountLeadingZeros_32(v)) - 1; in emitDataProcessingInstruction()
7833 unsigned Width = (32 - CountLeadingZeros_32(~InvMask)) - LSB; in PerformBFICombine()
329 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()
299 unsigned RotAmt = CountLeadingZeros_32(V); in getT2SOImmValRotateVal()
1346 uint32_t msb = (32 - CountLeadingZeros_32 (v)) - 1; in getBitfieldInvertedMaskOpValue()
586 int32_t width = (32 - CountLeadingZeros_32 (v)) - lsb; in printBitfieldInvMaskImmOperand()
1515 unsigned shift = CountLeadingZeros_32(v[n-1]); in KnuthDiv()