Home
last modified time | relevance | path

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

12345678

/NextBSD/contrib/llvm/lib/Support/
HDScaledNumber.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 …]
/NextBSD/contrib/llvm/include/llvm/Support/
HDScaledNumber.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);
701 static ScaledNumber adjustToWidth(uint64_t N, int32_t Shift) { in adjustToWidth() argument
[all …]
HDLEB128.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;
HDMathExtras.h52 T Shift = std::numeric_limits<T>::digits >> 1; in count() local
53 T Mask = std::numeric_limits<T>::max() >> Shift; in count()
54 while (Shift) { in count()
56 Val >>= Shift; in count()
57 ZeroBits |= Shift; in count()
59 Shift >>= 1; in count()
60 Mask >>= Shift; in count()
124 for (T Shift = std::numeric_limits<T>::digits >> 1; Shift; Shift >>= 1) {
125 T Tmp = Val >> Shift;
129 ZeroBits |= Shift;
/NextBSD/contrib/llvm/lib/IR/
HDAutoUpgrade.cpp251 unsigned Shift) { in UpgradeX86PSLLDQIntrinsics() argument
264 if (Shift < 16) { in UpgradeX86PSLLDQIntrinsics()
269 unsigned Idx = NumElts + i - Shift; in UpgradeX86PSLLDQIntrinsics()
288 unsigned Shift) { in UpgradeX86PSRLDQIntrinsics() argument
301 if (Shift < 16) { in UpgradeX86PSRLDQIntrinsics()
306 unsigned Idx = i + Shift; in UpgradeX86PSRLDQIntrinsics()
452 unsigned Shift = cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue(); in UpgradeIntrinsicCall() local
454 Shift / 8); // Shift is in bits. in UpgradeIntrinsicCall()
457 unsigned Shift = cast<ConstantInt>(CI->getArgOperand(1))->getZExtValue(); in UpgradeIntrinsicCall() local
459 Shift / 8); // Shift is in bits. in UpgradeIntrinsicCall()
[all …]
/NextBSD/contrib/llvm/tools/clang/lib/Format/
HDWhitespaceManager.cpp214 int Shift = 0; in alignConsecutiveAssignments() local
218 Shift = Column - Changes[i].StartOfTokenColumn; in alignConsecutiveAssignments()
220 PreviousShift = Shift; in alignConsecutiveAssignments()
222 assert(Shift >= 0); in alignConsecutiveAssignments()
223 Changes[i].Spaces += Shift; in alignConsecutiveAssignments()
225 Changes[i + 1].PreviousEndOfTokenColumn += Shift; in alignConsecutiveAssignments()
226 Changes[i].StartOfTokenColumn += Shift; in alignConsecutiveAssignments()
307 int Shift = 0; in alignTrailingComments() local
309 Shift = Column - Changes[i].StartOfTokenColumn; in alignTrailingComments()
312 Shift = Changes[i].IndentationOffset + in alignTrailingComments()
[all …]
/NextBSD/share/syscons/keymaps/
HDel.iso07.kbd6 # English/Greek keyboard lock: (Left)Alt+(Left|Right)Shift
16 # Screen saver: Shift+Pause
21 # diaeresis (dialytika): Shift+[;/:] and ���� => ����
24 # Greek semicolon (ano teleia): Shift+'w/W' => �
31 # Shift+Ctrl+[`/~] 189 � VULGAR FRACTION ONE HALF
33 # Shift+Ctrl+[1/!] 179 � SUPERSCRIPT THREE
34 # Shift(+Ctrl)+[3/#] 169 � COPYRIGHT SIGN
35 # Shift(+Ctrl)+[4/$] 163 � POUND SIGN
36 # Shift(+Ctrl)+[5/%] 167 � SECTION SIGN
37 # Shift(+Ctrl)+[7/&] 161 � SINGLE HIGH-REVERSED-9 QUOTATION MARK
[all …]
HDeee_nordic.kbd14 # Alt + Shift + 7 = ÷
20 # For left of backspace key, gives with Alt=' and Alt+Shift+Key=|
32 # Alt + U = Mikro, Alt + Shift + U = German u
43 # Alt + A = At sign, Ctrl+Alt = ae, Ctrl+Alt+Shift = AE
63 # Ctrl + Shift + B = German B
/NextBSD/contrib/llvm/lib/Target/AArch64/
HDAArch64ExpandPseudoInsts.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 …]
/NextBSD/share/vt/keymaps/
HDgr.kbd6 # English/Greek keyboard lock: (Left)Alt+(Left|Right)Shift
16 # Screen saver: Shift+Pause
21 # diaeresis (dialytika): Shift+[;/:] and ΙΥιυ => ΪΫϊϋ
24 # Greek semicolon (ano teleia): Shift+'w/W' => ·
31 # Shift+Ctrl+[`/~] 189 ½ VULGAR FRACTION ONE HALF
33 # Shift+Ctrl+[1/!] 179 ³ SUPERSCRIPT THREE
34 # Shift(+Ctrl)+[3/#] 169 © COPYRIGHT SIGN
35 # Shift(+Ctrl)+[4/$] 163 £ POUND SIGN
36 # Shift(+Ctrl)+[5/%] 167 § SECTION SIGN
37 # Shift(+Ctrl)+[7/&] 161 ‘ SINGLE HIGH-REVERSED-9 QUOTATION MARK
[all …]
HDnordic.asus-eee.kbd14 # Alt + Shift + 7 = ÷
20 # For left of backspace key, gives with Alt=' and Alt+Shift+Key=|
32 # Alt + U = Mikro, Alt + Shift + U = German U (???)
43 # Alt + A = At sign, Ctrl+Alt = æ, Ctrl+Alt+Shift = Æ
64 # Ctrl + Shift + B = German ß
/NextBSD/contrib/llvm/lib/Transforms/InstCombine/
HDInstCombinePHI.cpp554 unsigned Shift; // The amount shifted. member
558 : PHIId(pn), Shift(Sh), Inst(User) {} in PHIUsageRecord()
563 if (Shift < RHS.Shift) return true; in operator <()
564 if (Shift > RHS.Shift) return false; in operator <()
572 unsigned Shift; // The amount shifted. member
576 : PN(pn), Shift(Sh), Width(Ty->getPrimitiveSizeInBits()) {} in LoweredPHIRecord()
580 : PN(pn), Shift(Sh), Width(0) {} in LoweredPHIRecord()
594 return DenseMapInfo<PHINode*>::getHashValue(Val.PN) ^ (Val.Shift>>3) ^ in getHashValue()
599 return LHS.PN == RHS.PN && LHS.Shift == RHS.Shift && in isEqual()
670 unsigned Shift = cast<ConstantInt>(UserI->getOperand(1))->getZExtValue(); in SliceUpIllegalIntegerPHI() local
[all …]
HDInstCombineCasts.cpp497 Value *Shift = Builder->CreateLShr(A, Cst->getZExtValue()); in visitTrunc() local
498 Shift->takeName(Src); in visitTrunc()
499 return CastInst::CreateIntegerCast(Shift, CI.getType(), false); in visitTrunc()
1561 static bool CollectInsertionElements(Value *V, unsigned Shift, in CollectInsertionElements() argument
1564 assert(isMultipleOfTypeSize(Shift, VecEltTy) && in CollectInsertionElements()
1578 unsigned ElementIndex = getTypeSizeIndex(Shift, VecEltTy); in CollectInsertionElements()
1599 Shift, Elements, VecEltTy, isBigEndian); in CollectInsertionElements()
1610 unsigned ShiftI = Shift+i*ElementSize; in CollectInsertionElements()
1628 return CollectInsertionElements(I->getOperand(0), Shift, Elements, VecEltTy, in CollectInsertionElements()
1635 return CollectInsertionElements(I->getOperand(0), Shift, Elements, VecEltTy, in CollectInsertionElements()
[all …]
/NextBSD/contrib/llvm/include/llvm/IR/
HDIntrinsicsAArch64.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 …]
/NextBSD/contrib/llvm/lib/Analysis/
HDBlockFrequencyInfoImpl.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()
/NextBSD/contrib/llvm/lib/Transforms/Utils/
HDIntegerDivision.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()
/NextBSD/contrib/libarchive/libarchive/
HDarchive_ppmd_private.h115 Byte Shift; /* Speed of Freq change; low Shift is for fast change */ member
119 #define Ppmd_See_Update(p) if ((p)->Shift < PPMD_PERIOD_BITS && --(p)->Count == 0) \
120 { (p)->Summ <<= 1; (p)->Count = (Byte)(3 << (p)->Shift++); }
/NextBSD/contrib/llvm/tools/clang/lib/Basic/
HDOperatorPrecedence.cpp38 return prec::Shift; in getBinOpPrecedence()
65 case tok::lessless: return prec::Shift; in getBinOpPrecedence()
/NextBSD/tools/tools/vt/keymaps/
HDKBDFILES.map7 # This conversion is only performed for the "E" key (not e.g. on Shift-4, which
17 #ISO8859-1 br275.iso.kbd br.kbd.from-iso1 (only AltGr-Shift-6 differs from CP850)
21 #CP1131 by.cp1131.kbd by.kbd.from-cp1131 (Shift-3 not OK)
132 #CP850 uk.cp850.kbd uk.kbd.from-cp850 (no � and different Alt/Alt-Shift encodings)
133 #CP850 uk.cp850-ctrl.kbd uk.capsctrl.kbd.from-cp850 (no � and different Alt/Alt-Shift encodings)
/NextBSD/contrib/llvm/tools/clang/include/clang/Basic/
HDSanitizers.def72 SANITIZER_GROUP("shift", Shift, ShiftBase | ShiftExponent)
102 Shift | SignedIntegerOverflow | Unreachable | VLABound |
109 SignedIntegerOverflow | UnsignedIntegerOverflow | Shift |
/NextBSD/contrib/llvm/lib/Target/X86/
HDX86ISelDAGToDAG.cpp812 SDValue Shift, SDValue X, in FoldMaskAndShiftToExtract() argument
814 if (Shift.getOpcode() != ISD::SRL || in FoldMaskAndShiftToExtract()
815 !isa<ConstantSDNode>(Shift.getOperand(1)) || in FoldMaskAndShiftToExtract()
816 !Shift.hasOneUse()) in FoldMaskAndShiftToExtract()
819 int ScaleLog = 8 - Shift.getConstantOperandVal(1); in FoldMaskAndShiftToExtract()
855 SDValue Shift, SDValue X, in FoldMaskedShiftToScaledMask() argument
857 if (Shift.getOpcode() != ISD::SHL || in FoldMaskedShiftToScaledMask()
858 !isa<ConstantSDNode>(Shift.getOperand(1))) in FoldMaskedShiftToScaledMask()
864 if (!N.hasOneUse() || !Shift.hasOneUse()) in FoldMaskedShiftToScaledMask()
868 unsigned ShiftAmt = Shift.getConstantOperandVal(1); in FoldMaskedShiftToScaledMask()
[all …]
/NextBSD/contrib/llvm/lib/Transforms/Scalar/
HDScalarReplAggregates.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 …]
/NextBSD/contrib/compiler-rt/lib/builtins/
HDfp_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.
/NextBSD/contrib/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/
HDRuntimeDyldMachOARM.h251 unsigned Shift = (HalfDiffKindBits & 0x1) ? 16 : 0; in processHALFSECTDIFFRelocation() local
252 uint32_t FullImmVal = (Immediate << Shift) | (OtherHalf << (16 - Shift)); in processHALFSECTDIFFRelocation()
/NextBSD/contrib/llvm/lib/Target/AArch64/AsmParser/
HDAArch64AsmParser.cpp672 unsigned Shift = ShiftedImm.ShiftAmount; in isAddSubImm() local
674 if (Shift != 0 && Shift != 12) in isAddSubImm()
710 unsigned Shift = ShiftedImm.ShiftAmount; in isAddSubImmNeg() local
712 if (Shift != 0 && Shift != 12) in isAddSubImmNeg()
831 template<int RegWidth, int Shift>
843 if (Value == 0 && Shift != 0) in isMOVZMovAlias()
846 return (Value & ~(0xffffULL << Shift)) == 0; in isMOVZMovAlias()
849 template<int RegWidth, int Shift>
866 return (Value & ~(0xffffULL << Shift)) == 0; in isMOVNMovAlias()
1062 unsigned Shift = getShiftExtendAmount(); in isLogicalVecShifter() local
[all …]

12345678