Home
last modified time | relevance | path

Searched refs:Shift (Results 1 – 25 of 186) sorted by relevance

12345678

/external/llvm/lib/Support/
DScaledNumber.cpp48 int Shift = 64 - LeadingZeros; in multiply64() local
50 Upper = Upper << LeadingZeros | Lower >> Shift; in multiply64()
51 return getRounded(Upper, Shift, in multiply64()
52 Shift && (Lower & UINT64_C(1) << (Shift - 1))); in multiply64()
64 int Shift = 0; in divide32() local
66 Shift -= Zeros; in divide32()
74 return getAdjusted<uint32_t>(Quotient, Shift); in divide32()
77 return getRounded<uint32_t>(Quotient, Shift, Remainder >= getHalf(Divisor)); in divide32()
86 int Shift = 0; in divide64() local
88 Shift -= Zeros; in divide64()
[all …]
/external/llvm/include/llvm/Support/
DScaledNumber.h89 int Shift = 64 - Width - countLeadingZeros(Digits); variable
90 return getRounded<DigitsT>(Digits >> Shift, Scale + Shift,
91 Digits & (UINT64_C(1) << (Shift - 1)));
624 ScaledNumber &operator<<=(int16_t Shift) {
625 shiftLeft(Shift);
628 ScaledNumber &operator>>=(int16_t Shift) {
629 shiftRight(Shift);
634 void shiftLeft(int32_t Shift);
635 void shiftRight(int32_t Shift);
708 static ScaledNumber adjustToWidth(uint64_t N, int32_t Shift) { in adjustToWidth() argument
[all …]
DLEB128.h83 unsigned Shift = 0; variable
85 Value += uint64_t(*p & 0x7f) << Shift;
86 Shift += 7;
97 unsigned Shift = 0; variable
101 Value |= ((Byte & 0x7f) << Shift);
102 Shift += 7;
106 Value |= (-1ULL) << Shift;
DMathExtras.h48 T Shift = std::numeric_limits<T>::digits >> 1; in count() local
49 T Mask = std::numeric_limits<T>::max() >> Shift; in count()
50 while (Shift) { in count()
52 Val >>= Shift; in count()
53 ZeroBits |= Shift; in count()
55 Shift >>= 1; in count()
56 Mask >>= Shift; in count()
120 for (T Shift = std::numeric_limits<T>::digits >> 1; Shift; Shift >>= 1) {
121 T Tmp = Val >> Shift;
125 ZeroBits |= Shift;
/external/llvm/lib/IR/
DAutoUpgrade.cpp348 unsigned Shift) { in UpgradeX86PSLLDQIntrinsics() argument
361 if (Shift < 16) { in UpgradeX86PSLLDQIntrinsics()
366 unsigned Idx = NumElts + i - Shift; in UpgradeX86PSLLDQIntrinsics()
385 unsigned Shift) { in UpgradeX86PSRLDQIntrinsics() argument
398 if (Shift < 16) { in UpgradeX86PSRLDQIntrinsics()
403 unsigned Idx = i + Shift; in UpgradeX86PSRLDQIntrinsics()
548 unsigned Shift = cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue(); in UpgradeIntrinsicCall() local
550 Shift / 8); // Shift is in bits. in UpgradeIntrinsicCall()
553 unsigned Shift = cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue(); in UpgradeIntrinsicCall() local
555 Shift / 8); // Shift is in bits. in UpgradeIntrinsicCall()
[all …]
/external/llvm/lib/Target/AArch64/
DAArch64ExpandPseudoInsts.cpp417 for (unsigned Shift = 0; Shift < BitSize; Shift += 16) { in expandMOVImm() local
418 const unsigned Chunk = (Imm >> Shift) & Mask; in expandMOVImm()
514 unsigned Shift = 0; // LSL amount for high bits with MOVZ/MOVN in expandMOVImm() local
519 Shift = ((63 - LZ) / 16) * 16; in expandMOVImm()
522 unsigned Imm16 = (Imm >> Shift) & Mask; in expandMOVImm()
528 getDeadRegState(DstIsDead && Shift == LastShift)) in expandMOVImm()
530 .addImm(AArch64_AM::getShifterImm(AArch64_AM::LSL, Shift)); in expandMOVImm()
537 if (Shift == LastShift) { in expandMOVImm()
545 while (Shift != LastShift) { in expandMOVImm()
546 Shift -= 16; in expandMOVImm()
[all …]
/external/lzma/C/
DPpmd.h36 Byte Shift; /* Speed of Freq change; low Shift is for fast change */ member
40 #define Ppmd_See_Update(p) if ((p)->Shift < PPMD_PERIOD_BITS && --(p)->Count == 0) \
41 { (p)->Summ <<= 1; (p)->Count = (Byte)(3 << (p)->Shift++); }
/external/llvm/lib/Transforms/InstCombine/
DInstCombinePHI.cpp558 unsigned Shift; // The amount shifted. member
562 : PHIId(pn), Shift(Sh), Inst(User) {} in PHIUsageRecord()
567 if (Shift < RHS.Shift) return true; in operator <()
568 if (Shift > RHS.Shift) return false; in operator <()
576 unsigned Shift; // The amount shifted. member
580 : PN(pn), Shift(Sh), Width(Ty->getPrimitiveSizeInBits()) {} in LoweredPHIRecord()
584 : PN(pn), Shift(Sh), Width(0) {} in LoweredPHIRecord()
598 return DenseMapInfo<PHINode*>::getHashValue(Val.PN) ^ (Val.Shift>>3) ^ in getHashValue()
603 return LHS.PN == RHS.PN && LHS.Shift == RHS.Shift && in isEqual()
674 unsigned Shift = cast<ConstantInt>(UserI->getOperand(1))->getZExtValue(); in SliceUpIllegalIntegerPHI() local
[all …]
DInstCombineCasts.cpp488 Value *Shift = Builder->CreateLShr(A, Cst->getZExtValue()); in visitTrunc() local
489 Shift->takeName(Src); in visitTrunc()
490 return CastInst::CreateIntegerCast(Shift, CI.getType(), false); in visitTrunc()
1552 static bool CollectInsertionElements(Value *V, unsigned Shift, in CollectInsertionElements() argument
1555 assert(isMultipleOfTypeSize(Shift, VecEltTy) && in CollectInsertionElements()
1569 unsigned ElementIndex = getTypeSizeIndex(Shift, VecEltTy); in CollectInsertionElements()
1590 Shift, Elements, VecEltTy, isBigEndian); in CollectInsertionElements()
1601 unsigned ShiftI = Shift+i*ElementSize; in CollectInsertionElements()
1619 return CollectInsertionElements(I->getOperand(0), Shift, Elements, VecEltTy, in CollectInsertionElements()
1626 return CollectInsertionElements(I->getOperand(0), Shift, Elements, VecEltTy, in CollectInsertionElements()
[all …]
/external/llvm/test/MC/Disassembler/Hexagon/
Dxtype_shift.txt4 # Shift by immediate
18 # Shift by immediate and accumulate
52 # Shift by immediate and add
56 # Shift by immediate and logical
98 # Shift right by immediate with rounding
104 # Shift left by immediate with saturation
108 # Shift by register
128 # Shift by register and accumulate
162 # Shift by register and logical
204 # Shift by register with saturation
/external/clang/lib/Format/
DWhitespaceManager.cpp216 int Shift = 0; in alignTrailingComments() local
218 Shift = Column - Changes[i].StartOfTokenColumn; in alignTrailingComments()
221 Shift = Changes[i].IndentationOffset + in alignTrailingComments()
225 assert(Shift >= 0); in alignTrailingComments()
226 Changes[i].Spaces += Shift; in alignTrailingComments()
228 Changes[i + 1].PreviousEndOfTokenColumn += Shift; in alignTrailingComments()
229 Changes[i].StartOfTokenColumn += Shift; in alignTrailingComments()
/external/llvm/include/llvm/IR/
DIntrinsicsAArch64.td305 // Vector Saturating Shift Left
309 // Vector Rounding Shift Left
313 // Vector Saturating Rounding Shift Left
317 // Vector Signed->Unsigned Shift Left by Constant
320 // Vector Signed->Unsigned Narrowing Saturating Shift Right by Constant
323 // Vector Signed->Unsigned Rounding Narrowing Saturating Shift Right by Const
326 // Vector Narrowing Shift Right by Constant
330 // Vector Rounding Narrowing Shift Right by Constant
333 // Vector Rounding Narrowing Saturating Shift Right by Constant
337 // Vector Shift Left
[all …]
DInstruction.def122 HANDLE_BINARY_INST(20, Shl , BinaryOperator) // Shift left (logical)
123 HANDLE_BINARY_INST(21, LShr , BinaryOperator) // Shift right (logical)
124 HANDLE_BINARY_INST(22, AShr , BinaryOperator) // Shift right (arithmetic)
/external/llvm/lib/Analysis/
DBlockFrequencyInfoImpl.cpp180 static uint64_t shiftRightAndRound(uint64_t N, int Shift) { in shiftRightAndRound() argument
181 assert(Shift >= 0); in shiftRightAndRound()
182 assert(Shift < 64); in shiftRightAndRound()
183 if (!Shift) in shiftRightAndRound()
185 return (N >> Shift) + (UINT64_C(1) & N >> (Shift - 1)); in shiftRightAndRound()
207 int Shift = 0; in normalize() local
209 Shift = 33; in normalize()
211 Shift = 33 - countLeadingZeros(Total); in normalize()
214 if (!Shift) { in normalize()
234 W.Amount = std::max(UINT64_C(1), shiftRightAndRound(W.Amount, Shift)); in normalize()
/external/llvm/lib/Transforms/Utils/
DIntegerDivision.cpp37 ConstantInt *Shift; in generateSignedRemainderCode() local
40 Shift = Builder.getInt64(63); in generateSignedRemainderCode()
43 Shift = Builder.getInt32(31); in generateSignedRemainderCode()
58 Value *DividendSign = Builder.CreateAShr(Dividend, Shift); in generateSignedRemainderCode()
59 Value *DivisorSign = Builder.CreateAShr(Divisor, Shift); in generateSignedRemainderCode()
109 ConstantInt *Shift; in generateSignedDivisionCode() local
112 Shift = Builder.getInt64(63); in generateSignedDivisionCode()
115 Shift = Builder.getInt32(31); in generateSignedDivisionCode()
131 Value *Tmp = Builder.CreateAShr(Dividend, Shift); in generateSignedDivisionCode()
132 Value *Tmp1 = Builder.CreateAShr(Divisor, Shift); in generateSignedDivisionCode()
/external/pdfium/core/src/fxcodec/lcms2/lcms2-2.6/src/
Dcmshalf.c462 static cmsUInt8Number Shift[512] = { variable
531 return (cmsUInt16Number) ((cmsUInt32Number) Base[ j ] + (( n & 0x007fffff) >> Shift[ j ])); in _cmsFloat2Half()
/external/clang/lib/Basic/
DOperatorPrecedence.cpp38 return prec::Shift; in getBinOpPrecedence()
65 case tok::lessless: return prec::Shift; in getBinOpPrecedence()
/external/v8/src/compiler/arm/
Dinstruction-selector-arm-unittest.cc61 struct Shift { struct
71 std::ostream& operator<<(std::ostream& os, const Shift& shift) { in operator <<()
76 static const Shift kShifts[] = {
166 TRACED_FOREACH(Shift, shift, kShifts) { in TEST_P()
178 TRACED_FOREACH(Shift, shift, kShifts) { in TEST_P()
195 TRACED_FOREACH(Shift, shift, kShifts) { in TEST_P()
210 TRACED_FOREACH(Shift, shift, kShifts) { in TEST_P()
285 TRACED_FOREACH(Shift, shift, kShifts) { in TEST_P()
303 TRACED_FOREACH(Shift, shift, kShifts) { in TEST_P()
326 TRACED_FOREACH(Shift, shift, kShifts) { in TEST_P()
[all …]
/external/clang/include/clang/Basic/
DSanitizers.def69 SANITIZER_GROUP("shift", Shift, ShiftBase | ShiftExponent)
97 Shift | SignedIntegerOverflow | Unreachable | VLABound)
104 SignedIntegerOverflow | UnsignedIntegerOverflow | Shift |
DOperatorPrecedence.h39 Shift = 11, // <<, >> enumerator
/external/llvm/lib/Target/X86/
DX86ISelDAGToDAG.cpp790 SDValue Shift, SDValue X, in FoldMaskAndShiftToExtract() argument
792 if (Shift.getOpcode() != ISD::SRL || in FoldMaskAndShiftToExtract()
793 !isa<ConstantSDNode>(Shift.getOperand(1)) || in FoldMaskAndShiftToExtract()
794 !Shift.hasOneUse()) in FoldMaskAndShiftToExtract()
797 int ScaleLog = 8 - Shift.getConstantOperandVal(1); in FoldMaskAndShiftToExtract()
833 SDValue Shift, SDValue X, in FoldMaskedShiftToScaledMask() argument
835 if (Shift.getOpcode() != ISD::SHL || in FoldMaskedShiftToScaledMask()
836 !isa<ConstantSDNode>(Shift.getOperand(1))) in FoldMaskedShiftToScaledMask()
842 if (!N.hasOneUse() || !Shift.hasOneUse()) in FoldMaskedShiftToScaledMask()
846 unsigned ShiftAmt = Shift.getConstantOperandVal(1); in FoldMaskedShiftToScaledMask()
[all …]
/external/llvm/lib/Transforms/Scalar/
DScalarReplAggregates.cpp2378 uint64_t Shift = Layout->getElementOffsetInBits(i); in RewriteStoreUserOfWholeAlloca() local
2381 Shift = AllocaSizeBits - Shift - DL.getTypeAllocSizeInBits(FieldTy); in RewriteStoreUserOfWholeAlloca()
2384 if (Shift) { in RewriteStoreUserOfWholeAlloca()
2385 Value *ShiftVal = ConstantInt::get(EltVal->getType(), Shift); in RewriteStoreUserOfWholeAlloca()
2418 uint64_t Shift; in RewriteStoreUserOfWholeAlloca() local
2421 Shift = AllocaSizeBits-ElementOffset; in RewriteStoreUserOfWholeAlloca()
2423 Shift = 0; in RewriteStoreUserOfWholeAlloca()
2430 if (Shift) { in RewriteStoreUserOfWholeAlloca()
2431 Value *ShiftVal = ConstantInt::get(EltVal->getType(), Shift); in RewriteStoreUserOfWholeAlloca()
2455 Shift -= ElementOffset; in RewriteStoreUserOfWholeAlloca()
[all …]
/external/compiler-rt/lib/builtins/
Dfp_add_impl.inc74 // Shift the significands to give us round, guard and sticky, and or in the
81 // Shift the significand of b by the difference in exponents, with a sticky
132 // Shift the significand into place, and mask off the implicit bit.
/external/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
DRuntimeDyldMachOARM.h252 unsigned Shift = (HalfDiffKindBits & 0x1) ? 16 : 0; in processHALFSECTDIFFRelocation() local
253 uint32_t FullImmVal = (Immediate << Shift) | (OtherHalf << (16 - Shift)); in processHALFSECTDIFFRelocation()
/external/lldb/source/Commands/
DCommandObjectMultiword.cpp139 args.Shift(); in Execute()
254 input.Shift(); in HandleCompletion()
283 input.Shift(); in HandleCompletion()

12345678