Home
last modified time | relevance | path

Searched refs:countLeadingZeros (Results 1 – 25 of 55) sorted by relevance

123

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/PowerPC/MCTargetDesc/
DPPCMCTargetDesc.h67 MB = countLeadingZeros(Val); in isRunOfOnes()
69 ME = countLeadingZeros((Val - 1) ^ Val); in isRunOfOnes()
75 ME = countLeadingZeros(Val) - 1; in isRunOfOnes()
77 MB = countLeadingZeros((Val - 1) ^ Val) + 1; in isRunOfOnes()
91 MB = countLeadingZeros(Val); in isRunOfOnes64()
93 ME = countLeadingZeros((Val - 1) ^ Val); in isRunOfOnes64()
99 ME = countLeadingZeros(Val) - 1; in isRunOfOnes64()
101 MB = countLeadingZeros((Val - 1) ^ Val) + 1; in isRunOfOnes64()
/third_party/openGLES/extensions/INTEL/
DINTEL_shader_integer_functions2.txt93 genUType countLeadingZeros(genUType value)
202 2) How does countLeadingZeros differ from findMSB?
204 RESOLVED: countLeadingZeros is only defined for unsigned types, and it is
213 4) Should 64-bit versions of countLeadingZeros and countTrailingZeros be
219 countLeadingZeros and countTrailingZeros do not natively support 64-bit
222 The implementation of 64-bit countLeadingZeros() would be 5 instructions,
227 uint countLeadingZeros(uint64_t value)
232 ? 32 + countLeadingZeros(v.x) : countLeadingZeros(v.y);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/Support/
DMathExtras.h180 std::size_t countLeadingZeros(T Val, ZeroBehavior ZB = ZB_Width) {
214 return countLeadingZeros(Val, ZB_Undefined) ^
440 return countLeadingZeros(~Value, ZB);
514 return 31 - countLeadingZeros(Value);
520 return 63 - countLeadingZeros(Value);
527 return 32 - countLeadingZeros(Value - 1);
533 return 64 - countLeadingZeros(Value - 1);
641 return 1ull << (63 - countLeadingZeros(A, ZB_Undefined));
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/
DMathExtras.h225 unsigned countLeadingZeros(T Val, ZeroBehavior ZB = ZB_Width) {
286 return countLeadingZeros(Val, ZB_Undefined) ^
502 return countLeadingZeros<T>(~Value, ZB);
586 return 31 - countLeadingZeros(Value);
592 return 63 - countLeadingZeros(Value);
599 return 32 - countLeadingZeros(Value - 1);
605 return 64 - countLeadingZeros(Value - 1);
686 return 1ull << (63 - countLeadingZeros(A, ZB_Undefined));
DKnownBits.h202 return One.countLeadingZeros(); in countMaxLeadingZeros()
207 return Zero.countLeadingZeros(); in countMaxLeadingOnes()
DScaledNumber.h88 int Shift = 64 - Width - countLeadingZeros(Digits);
195 int32_t LocalFloor = sizeof(Digits) * 8 - countLeadingZeros(Digits) - 1; in getLgImpl()
307 int32_t ShiftL = std::min<int32_t>(countLeadingZeros(LDigits), ScaleDiff); in matchScales()
428 static int countLeadingZeros32(uint32_t N) { return countLeadingZeros(N); } in countLeadingZeros32()
429 static int countLeadingZeros64(uint64_t N) { return countLeadingZeros(N); } in countLeadingZeros64()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DScaledNumber.cpp47 unsigned LeadingZeros = countLeadingZeros(Upper); in multiply64()
65 if (int Zeros = countLeadingZeros(Dividend64)) { in divide32()
97 if (int Zeros = countLeadingZeros(Dividend)) { in divide64()
DNativeFormatting.cpp139 unsigned Nibbles = (64 - countLeadingZeros(N) + 3) / 4; in write_hex()
DAPInt.cpp594 Count += llvm::countLeadingZeros(V); in countLeadingZerosSlowCase()
1351 unsigned shift = countLeadingZeros(v[n-1]); in KnuthDiv()
1999 if (countLeadingZeros() + RHS.countLeadingZeros() + 2 <= BitWidth) { in umul_ov()
2021 Overflow = ShAmt.uge(countLeadingZeros()); in sshl_ov()
2033 Overflow = ShAmt.ugt(countLeadingZeros()); in ushl_ov()
3060 return A.getBitWidth() - ((A ^ B).countLeadingZeros() + 1); in GetMostSignificantDifferentBit()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DAPInt.h1279 unsigned getActiveBits() const { return BitWidth - countLeadingZeros(); } in getActiveBits()
1343 unsigned countLeadingZeros() const { in countLeadingZeros() function
1346 return llvm::countLeadingZeros(VAL) - unusedBits; in countLeadingZeros()
1364 return isNegative() ? countLeadingOnes() : countLeadingZeros(); in getNumSignBits()
1507 unsigned logBase2() const { return BitWidth - 1 - countLeadingZeros(); } in logBase2()
1513 return BitWidth - temp.countLeadingZeros(); in ceilLogBase2()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/MCA/
DSupport.h101 return (std::numeric_limits<uint64_t>::digits - countLeadingZeros(Mask)) - 1; in getResourceStateIndex()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/XCore/
DXCoreISelDAGToDAG.cpp59 int msksize = 32 - countLeadingZeros(value); in immMskBitp()
141 SDValue MskSize = getI32Imm(32 - countLeadingZeros((uint32_t)Val), dl); in Select()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/MCTargetDesc/
DARMUnwindOpAsm.cpp110 auto RangeMSB = 32 - countLeadingZeros(Regs); in EmitVFPRegSave()
DARMAddressingModes.h291 unsigned RotAmt = countLeadingZeros(V); in getT2SOImmValRotateVal()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DAPInt.h1590 unsigned getActiveBits() const { return BitWidth - countLeadingZeros(); } in getActiveBits()
1653 unsigned countLeadingZeros() const { in countLeadingZeros() function
1656 return llvm::countLeadingZeros(U.VAL) - unusedBits; in countLeadingZeros()
1678 return isNegative() ? countLeadingOnes() : countLeadingZeros(); in getNumSignBits()
DSmallBitVector.h242 return NumBaseBits - countLeadingZeros(Bits) - 1; in find_last()
316 return NumBaseBits - countLeadingZeros(Bits) - 1; in find_prev()
DSparseBitVector.h140 countLeadingZeros(Bits[Idx]) - 1; in find_last()
DBitVector.h259 return (CurrentWord + 1) * BITWORD_SIZE - countLeadingZeros(Copy) - 1; in find_last_in()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/MCTargetDesc/
DAArch64AddressingModes.h300 int len = 31 - countLeadingZeros((N << 6) | (~imms & 0x3f)); in decodeLogicalImmediate()
329 int len = 31 - countLeadingZeros((N << 6) | (~imms & 0x3f)); in isValidDecodeLogicalImmediate()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AArch64/
DAArch64ExpandImm.cpp273 unsigned LZ = countLeadingZeros(Imm); in expandMOVImmSimple()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/
DNativeFormatting.cpp140 unsigned Nibbles = (64 - countLeadingZeros(N) + 3) / 4; in write_hex()
DAPInt.cpp651 Count += llvm::countLeadingZeros(V); in countLeadingZerosSlowCase()
1499 unsigned shift = countLeadingZeros(v[n-1]); in KnuthDiv()
2026 Overflow = ShAmt.uge(countLeadingZeros()); in sshl_ov()
2038 Overflow = ShAmt.ugt(countLeadingZeros()); in ushl_ov()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DThumb2InstrInfo.cpp340 unsigned RotAmt = countLeadingZeros(ThisVal); in emitT2RegPlusImmediate()
545 unsigned RotAmt = countLeadingZeros<unsigned>(Offset); in rewriteT2FrameIndex()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/InstCombine/
DInstCombineSimplifyDemanded.cpp459 unsigned NLZ = DemandedMask.countLeadingZeros(); in SimplifyDemandedUseBits()
574 if (DemandedMask.countLeadingZeros() <= ShiftAmt) in SimplifyDemandedUseBits()
692 unsigned NLZ = DemandedMask.countLeadingZeros(); in SimplifyDemandedUseBits()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPUSubtarget.h462 return countLeadingZeros(MaxWaveScratchSize) + getWavefrontSizeLog2(); in getKnownHighZeroBitsForFrameIndex()

123