Home
last modified time | relevance | path

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

123456789

/freebsd-12.1/contrib/llvm/lib/Support/
H A DScaledNumber.cpp53 Shift && (Lower & UINT64_C(1) << (Shift - 1))); in multiply64()
65 int Shift = 0; in divide32() local
67 Shift -= Zeros; in divide32()
87 int Shift = 0; in divide64() local
89 Shift -= Zeros; in divide64()
99 Shift -= Zeros; in divide64()
112 --Shift; in divide64()
173 assert(Shift >= 0 && Shift < 64 && "undefined behavior"); in toStringAPFloat()
174 D <<= Shift; in toStringAPFloat()
216 D <<= Shift; in toString()
[all …]
/freebsd-12.1/contrib/llvm/include/llvm/Support/
H A DScaledNumber.h90 return getRounded<DigitsT>(Digits >> Shift, Scale + Shift,
625 shiftLeft(Shift);
629 shiftRight(Shift);
838 if (Shift < 0) { in shiftLeft()
839 shiftRight(-Shift); in shiftLeft()
854 Shift -= ScaleShift; in shiftLeft()
861 Digits <<= Shift; in shiftLeft()
868 if (Shift < 0) { in shiftRight()
869 shiftLeft(-Shift); in shiftRight()
880 Shift -= ScaleShift; in shiftRight()
[all …]
H A DLEB128.h134 unsigned Shift = 0; variable
146 if (Shift >= 64 || Slice << Shift >> Shift != Slice) {
153 Value += uint64_t(*p & 0x7f) << Shift;
154 Shift += 7;
167 unsigned Shift = 0; variable
178 Value |= (int64_t(Byte & 0x7f) << Shift);
179 Shift += 7;
183 Value |= (-1ULL) << Shift;
H A DMathExtras.h63 T Shift = std::numeric_limits<T>::digits >> 1; in count() local
64 T Mask = std::numeric_limits<T>::max() >> Shift; in count()
65 while (Shift) { in count()
67 Val >>= Shift; in count()
68 ZeroBits |= Shift; in count()
70 Shift >>= 1; in count()
71 Mask >>= Shift; in count()
135 for (T Shift = std::numeric_limits<T>::digits >> 1; Shift; Shift >>= 1) {
136 T Tmp = Val >> Shift;
140 ZeroBits |= Shift;
/freebsd-12.1/contrib/llvm/lib/Target/AMDGPU/Utils/
H A DAMDKernelCodeTInfo.h39 #define PRINTCOMP(GetMacro, Shift) \ argument
42 (int)GetMacro(C.compute_pgm_resource_registers >> Shift); \
44 #define PARSECOMP(SetMacro, Shift) \ argument
49 C.compute_pgm_resource_registers &= ~(SetMacro(0xFFFFFFFFFFFFFFFFULL) << Shift); \
50 C.compute_pgm_resource_registers |= SetMacro(Value) << Shift; \
54 #define COMPPGM(name, aname, GetMacro, SetMacro, Shift) \ argument
55 RECORD(name, aname, PRINTCOMP(GetMacro, Shift), PARSECOMP(SetMacro, Shift))
H A DAMDGPUBaseInfo.cpp52 unsigned getBitMask(unsigned Shift, unsigned Width) { in getBitMask() argument
53 return ((1 << Width) - 1) << Shift; in getBitMask()
59 unsigned packBits(unsigned Src, unsigned Dst, unsigned Shift, unsigned Width) { in packBits() argument
60 Dst &= ~(1 << Shift) & ~getBitMask(Shift, Width); in packBits()
61 Dst |= (Src << Shift) & getBitMask(Shift, Width); in packBits()
68 unsigned unpackBits(unsigned Src, unsigned Shift, unsigned Width) { in unpackBits() argument
69 return (Src & getBitMask(Shift, Width)) >> Shift; in unpackBits()
/freebsd-12.1/contrib/llvm/include/llvm/ADT/
H A DPointerEmbeddedInt.h45 Shift = sizeof(uintptr_t) * CHAR_BIT - Bits, enumerator
67 Value = static_cast<uintptr_t>(I) << Shift;
75 return static_cast<IntT>(static_cast<intptr_t>(Value) >> Shift);
76 return static_cast<IntT>(Value >> Shift);
98 enum { NumLowBitsAvailable = T::Shift };
/freebsd-12.1/share/syscons/keymaps/
H A Del.iso07.kbd6 # English/Greek keyboard lock: (Left)Alt+(Left|Right)Shift
16 # Screen saver: Shift+Pause
24 # Greek semicolon (ano teleia): Shift+'w/W' => �
34 # Shift(+Ctrl)+[3/#] 169 � COPYRIGHT SIGN
35 # Shift(+Ctrl)+[4/$] 163 � POUND SIGN
36 # Shift(+Ctrl)+[5/%] 167 � SECTION SIGN
42 # Shift(+Ctrl)+['/"] 176 � DEGREE SIGN
43 # Shift(+Ctrl)+[,/<] 173 � SOFT HYPHEN
44 # Shift(+Ctrl)+[./>] 175 � HORIZONTAL BAR
45 # Shift(+Ctrl)+[//?] 172 � NOT SIGN
[all …]
H A Deee_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
/freebsd-12.1/contrib/llvm/tools/clang/lib/Format/
H A DWhitespaceManager.cpp237 int Shift = 0; in AlignTokenSequence() local
271 Shift = 0; in AlignTokenSequence()
281 Changes[i].Spaces += Shift; in AlignTokenSequence()
291 Changes[i].Spaces += Shift; in AlignTokenSequence()
294 assert(Shift >= 0); in AlignTokenSequence()
295 Changes[i].StartOfTokenColumn += Shift; in AlignTokenSequence()
558 int Shift = 0; in alignTrailingComments() local
563 Shift = Changes[i].IndentationOffset + in alignTrailingComments()
567 assert(Shift >= 0); in alignTrailingComments()
568 Changes[i].Spaces += Shift; in alignTrailingComments()
[all …]
/freebsd-12.1/share/vt/keymaps/
H A Dgr.kbd6 # English/Greek keyboard lock: (Left)Alt+(Left|Right)Shift
16 # Screen saver: Shift+Pause
24 # Greek semicolon (ano teleia): Shift+'w/W' => ·
34 # Shift(+Ctrl)+[3/#] 169 © COPYRIGHT SIGN
35 # Shift(+Ctrl)+[4/$] 163 £ POUND SIGN
36 # Shift(+Ctrl)+[5/%] 167 § SECTION SIGN
42 # Shift(+Ctrl)+['/"] 176 ° DEGREE SIGN
43 # Shift(+Ctrl)+[,/<] 173 ­ SOFT HYPHEN
44 # Shift(+Ctrl)+[./>] 175 ― HORIZONTAL BAR
45 # Shift(+Ctrl)+[//?] 172 ¬ NOT SIGN
[all …]
H A Dnordic.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 ß
/freebsd-12.1/contrib/llvm/lib/Target/AArch64/
H A DAArch64ExpandPseudoInsts.cpp401 for (unsigned Shift = 0; Shift < BitSize; Shift += 16) { in expandMOVImm() local
402 const unsigned Chunk = (Imm >> Shift) & Mask; in expandMOVImm()
445 for (unsigned Shift = 0; Shift < BitSize; Shift += 16) { in expandMOVImm() local
446 uint64_t ShiftedMask = (0xFFFFULL << Shift); in expandMOVImm()
463 const unsigned Imm16 = getChunk(UImm, Shift / 16); in expandMOVImm()
545 Shift = (TZ / 16) * 16; in expandMOVImmSimple()
548 unsigned Imm16 = (Imm >> Shift) & Mask; in expandMOVImmSimple()
562 if (Shift == LastShift) { in expandMOVImmSimple()
570 while (Shift < LastShift) { in expandMOVImmSimple()
571 Shift += 16; in expandMOVImmSimple()
[all …]
/freebsd-12.1/contrib/llvm/lib/Transforms/Utils/
H A 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()
/freebsd-12.1/contrib/libarchive/libarchive/
H A Darchive_ppmd_private.h108 Byte Shift; /* Speed of Freq change; low Shift is for fast change */ member
112 #define Ppmd_See_Update(p) if ((p)->Shift < PPMD_PERIOD_BITS && --(p)->Count == 0) \
113 { (p)->Summ <<= 1; (p)->Count = (Byte)(3 << (p)->Shift++); }
/freebsd-12.1/contrib/llvm/include/llvm/IR/
H A DIntrinsicsAArch64.td318 // Vector Saturating Shift Left
322 // Vector Rounding Shift Left
326 // Vector Saturating Rounding Shift Left
330 // Vector Signed->Unsigned Shift Left by Constant
339 // Vector Narrowing Shift Right by Constant
343 // Vector Rounding Narrowing Shift Right by Constant
346 // Vector Rounding Narrowing Saturating Shift Right by Constant
350 // Vector Shift Left
354 // Vector Widening Shift Left by Constant
359 // Vector Shift Right by Constant and Insert
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/Mips/
H A DMicroMipsSizeReduction.cpp53 ImmField() : ImmFieldOperand(-1), Shift(0), LBound(0), HBound(0) {} in ImmField()
54 ImmField(uint8_t Shift, int16_t LBound, int16_t HBound, in ImmField()
56 : ImmFieldOperand(ImmFieldOperand), Shift(Shift), LBound(LBound), in ImmField()
59 uint8_t Shift; // Shift value member
106 uint8_t Shift() const { return Imm.Shift; } in Shift() function
328 static bool InRange(int64_t Value, unsigned short Shift, int LBound, in InRange() argument
330 int64_t Value2 = Value >> Shift; in InRange()
331 if (((Value & (int64_t)maskTrailingZeros<uint64_t>(Shift)) == Value) && in InRange()
345 if (!InRange(offset, Entry.Shift(), Entry.LBound(), Entry.HBound())) in ImmInRange()
/freebsd-12.1/contrib/llvm/lib/Analysis/
H A DBlockFrequencyInfoImpl.cpp207 static uint64_t shiftRightAndRound(uint64_t N, int Shift) { in shiftRightAndRound() argument
208 assert(Shift >= 0); in shiftRightAndRound()
209 assert(Shift < 64); in shiftRightAndRound()
210 if (!Shift) in shiftRightAndRound()
212 return (N >> Shift) + (UINT64_C(1) & N >> (Shift - 1)); in shiftRightAndRound()
235 int Shift = 0; in normalize() local
237 Shift = 33; in normalize()
239 Shift = 33 - countLeadingZeros(Total); in normalize()
242 if (!Shift) { in normalize()
262 W.Amount = std::max(UINT64_C(1), shiftRightAndRound(W.Amount, Shift)); in normalize()
/freebsd-12.1/contrib/llvm/lib/Transforms/InstCombine/
H A DInstCombinePHI.cpp891 unsigned Shift; // The amount shifted. member
895 : PHIId(pn), Shift(Sh), Inst(User) {} in PHIUsageRecord()
900 if (Shift < RHS.Shift) return true; in operator <()
901 if (Shift > RHS.Shift) return false; in operator <()
909 unsigned Shift; // The amount shifted. member
913 : PN(pn), Shift(Sh), Width(Ty->getPrimitiveSizeInBits()) {} in LoweredPHIRecord()
917 : PN(pn), Shift(Sh), Width(0) {} in LoweredPHIRecord()
931 return DenseMapInfo<PHINode*>::getHashValue(Val.PN) ^ (Val.Shift>>3) ^ in getHashValue()
936 return LHS.PN == RHS.PN && LHS.Shift == RHS.Shift && in isEqual()
1008 PHIUsers.push_back(PHIUsageRecord(PHIId, Shift, UserI->user_back())); in SliceUpIllegalIntegerPHI()
[all …]
/freebsd-12.1/contrib/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64AddressingModes.h803 for (int Shift = 0; Shift <= RegWidth - 16; Shift += 16) in isAnyMOVZMovAlias() local
804 if ((Value & ~(0xffffULL << Shift)) == 0) in isAnyMOVZMovAlias()
810 inline static bool isMOVZMovAlias(uint64_t Value, int Shift, int RegWidth) { in isMOVZMovAlias() argument
815 if (Value == 0 && Shift != 0) in isMOVZMovAlias()
818 return (Value & ~(0xffffULL << Shift)) == 0; in isMOVZMovAlias()
821 inline static bool isMOVNMovAlias(uint64_t Value, int Shift, int RegWidth) { in isMOVNMovAlias() argument
830 return isMOVZMovAlias(Value, Shift, RegWidth); in isMOVNMovAlias()
/freebsd-12.1/contrib/llvm/tools/clang/lib/Basic/
H A DOperatorPrecedence.cpp38 return prec::Shift; in getBinOpPrecedence()
67 case tok::lessless: return prec::Shift; in getBinOpPrecedence()
/freebsd-12.1/tools/tools/vt/keymaps/
H A DKBDFILES.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)
130 #CP850 uk.cp850.kbd uk.kbd.from-cp850 (no � and different Alt/Alt-Shift encodings)
131 #CP850 uk.cp850-ctrl.kbd uk.capsctrl.kbd.from-cp850 (no � and different Alt/Alt-Shift encodings)
/freebsd-12.1/contrib/llvm/lib/Target/X86/
H A DX86ISelDAGToDAG.cpp1297 if (Shift.getOpcode() != ISD::SRL || in foldMaskAndShiftToExtract()
1299 !Shift.hasOneUse()) in foldMaskAndShiftToExtract()
1407 if (Shift.getOpcode() != ISD::SRL || !Shift.hasOneUse() || in foldMaskAndShiftToScale()
1800 SDValue Shift = N.getOperand(0); in matchAddressRecursively() local
1801 if (Shift.getOpcode() != ISD::SRL && Shift.getOpcode() != ISD::SHL) break; in matchAddressRecursively()
1802 SDValue X = Shift.getOperand(0); in matchAddressRecursively()
3084 if (Shift == 8 && MaskSize == 8) in matchBEXTRFromAndImm()
3905 SDValue Shift = in Select() local
3909 MVT::i32, Shift, Shift); in Select()
3916 SDValue Shift = in Select() local
[all …]
/freebsd-12.1/contrib/llvm/tools/lld/ELF/Arch/
H A DMips.cpp212 uint8_t Shift) { in writeValue() argument
215 uint32_t Data = (Instr & ~Mask) | ((V >> Shift) & Mask); in writeValue()
221 uint8_t Shift) { in writeShuffleValue() argument
227 writeValue<E>(Loc, V, BitsSize, Shift); in writeShuffleValue()
235 uint8_t Shift) { in writeMicroRelocation16() argument
238 uint16_t Data = (Instr & ~Mask) | ((V >> Shift) & Mask); in writeMicroRelocation16()
/freebsd-12.1/contrib/llvm/lib/Target/AArch64/InstPrinter/
H A DAArch64InstPrinter.cpp239 int Shift = MI->getOperand(2).getImm(); in printInst() local
240 uint64_t Value = (uint64_t)MI->getOperand(1).getImm() << Shift; in printInst()
242 if (AArch64_AM::isMOVZMovAlias(Value, Shift, in printInst()
253 int Shift = MI->getOperand(2).getImm(); in printInst() local
254 uint64_t Value = ~((uint64_t)MI->getOperand(1).getImm() << Shift); in printInst()
258 if (AArch64_AM::isMOVNMovAlias(Value, Shift, RegWidth)) { in printInst()
927 unsigned Shift = in printAddSubImm() local
930 if (Shift != 0) in printAddSubImm()
934 *CommentStream << '=' << formatImm(Val << Shift) << '\n'; in printAddSubImm()
1510 unsigned Shift = MI->getOperand(OpNum + 1).getImm(); in printImm8OptLsl() local
[all …]

123456789