Home
last modified time | relevance | path

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

12345678910

/freebsd-13.1/contrib/llvm-project/llvm/lib/Support/
H A DScaledNumber.cpp52 Shift && (Lower & UINT64_C(1) << (Shift - 1))); in multiply64()
64 int Shift = 0; in divide32() local
66 Shift -= Zeros; in divide32()
86 int Shift = 0; in divide64() local
88 Shift -= Zeros; in divide64()
98 Shift -= Zeros; in divide64()
111 --Shift; in divide64()
172 assert(Shift >= 0 && Shift < 64 && "undefined behavior"); in toStringAPFloat()
173 D <<= Shift; in toStringAPFloat()
215 D <<= Shift; in toString()
[all …]
H A DKnownBits.cpp173 unsigned Shift = RHS.getConstant().getZExtValue(); in shl() local
175 Known.Zero <<= Shift; in shl()
176 Known.One <<= Shift; in shl()
178 Known.Zero.setLowBits(Shift); in shl()
226 unsigned Shift = RHS.getConstant().getZExtValue(); in lshr() local
228 Known.Zero.lshrInPlace(Shift); in lshr()
229 Known.One.lshrInPlace(Shift); in lshr()
231 Known.Zero.setHighBits(Shift); in lshr()
279 unsigned Shift = RHS.getConstant().getZExtValue(); in ashr() local
281 Known.Zero.ashrInPlace(Shift); in ashr()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/Support/
H A DLEB128.h133 unsigned Shift = 0; variable
145 if ((Shift >= 64 && Slice != 0) || Slice << Shift >> Shift != Slice) {
152 Value += Slice << Shift;
153 Shift += 7;
166 unsigned Shift = 0; variable
180 if ((Shift >= 64 && Slice != (Value < 0 ? 0x7f : 0x00)) ||
181 (Shift == 63 && Slice != 0 && Slice != 0x7f)) {
188 Value |= Slice << Shift;
189 Shift += 7;
193 if (Shift < 64 && (Byte & 0x40))
[all …]
H A DScaledNumber.h89 return getRounded<DigitsT>(Digits >> Shift, Scale + Shift,
624 shiftLeft(Shift);
628 shiftRight(Shift);
837 if (Shift < 0) { in shiftLeft()
838 shiftRight(-Shift); in shiftLeft()
853 Shift -= ScaleShift; in shiftLeft()
860 Digits <<= Shift; in shiftLeft()
867 if (Shift < 0) { in shiftRight()
868 shiftLeft(-Shift); in shiftRight()
879 Shift -= ScaleShift; in shiftRight()
[all …]
H A DMathExtras.h99 T Shift = std::numeric_limits<T>::digits >> 1; in count() local
100 T Mask = std::numeric_limits<T>::max() >> Shift; in count()
101 while (Shift) { in count()
103 Val >>= Shift; in count()
104 ZeroBits |= Shift; in count()
106 Shift >>= 1; in count()
107 Mask >>= Shift; in count()
171 for (T Shift = std::numeric_limits<T>::digits >> 1; Shift; Shift >>= 1) {
172 T Tmp = Val >> Shift;
176 ZeroBits |= Shift;
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ExpandImm.cpp274 Shift = (TZ / 16) * 16; in expandMOVImmSimple()
277 unsigned Imm16 = (Imm >> Shift) & Mask; in expandMOVImmSimple()
282 if (Shift == LastShift) in expandMOVImmSimple()
291 while (Shift < LastShift) { in expandMOVImmSimple()
292 Shift += 16; in expandMOVImmSimple()
293 Imm16 = (Imm >> Shift) & Mask; in expandMOVImmSimple()
312 for (unsigned Shift = 0; Shift < BitSize; Shift += 16) { in expandMOVImm() local
313 const unsigned Chunk = (Imm >> Shift) & Mask; in expandMOVImm()
355 for (unsigned Shift = 0; Shift < BitSize; Shift += 16) { in expandMOVImm() local
356 uint64_t ShiftedMask = (0xFFFFULL << Shift); in expandMOVImm()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/
H A DAMDKernelCodeTInfo.h38 #define PRINTCOMP(GetMacro, Shift) \ argument
41 (int)GetMacro(C.compute_pgm_resource_registers >> Shift); \
43 #define PARSECOMP(SetMacro, Shift) \ argument
48 C.compute_pgm_resource_registers &= ~(SetMacro(0xFFFFFFFFFFFFFFFFULL) << Shift); \
49 C.compute_pgm_resource_registers |= SetMacro(Value) << Shift; \
53 #define COMPPGM(name, aname, GetMacro, SetMacro, Shift) \ argument
54 RECORD(name, aname, PRINTCOMP(GetMacro, Shift), PARSECOMP(SetMacro, Shift))
/freebsd-13.1/contrib/llvm-project/llvm/include/llvm/ADT/
H A DPointerEmbeddedInt.h44 Shift = sizeof(uintptr_t) * CHAR_BIT - Bits, enumerator
66 Value = static_cast<uintptr_t>(I) << Shift;
74 return static_cast<IntT>(static_cast<intptr_t>(Value) >> Shift);
75 return static_cast<IntT>(Value >> Shift);
97 static constexpr int NumLowBitsAvailable = T::Shift;
H A DBitfields.h166 static constexpr StorageType Mask = BP::Umax << Bitfield::Shift;
173 Packed |= StorageValue << Bitfield::Shift;
179 const StorageType StorageValue = (Packed & Mask) >> Bitfield::Shift;
227 static constexpr unsigned Shift = Offset;
230 static constexpr unsigned LastBit = Shift + Bits - 1;
231 static constexpr unsigned NextBit = Shift + Bits;
/freebsd-13.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-13.1/contrib/llvm-project/compiler-rt/lib/gwp_asan/
H A Dstack_trace_compressor.cpp37 uint8_t Shift = 0; in varIntDecode() local
40 *Out |= (static_cast<uintptr_t>(In[i]) & 0x7f) << Shift; in varIntDecode()
45 Shift += 7; in varIntDecode()
48 if (Shift >= sizeof(uintptr_t) * 8) in varIntDecode()
/freebsd-13.1/contrib/llvm-project/clang/lib/Format/
H A DWhitespaceManager.cpp272 int Shift = 0; in AlignTokenSequence() local
319 Shift = 0; in AlignTokenSequence()
329 Changes[i].Spaces += Shift; in AlignTokenSequence()
373 Changes[i].Spaces += Shift; in AlignTokenSequence()
375 assert(Shift >= 0); in AlignTokenSequence()
575 int Shift = 0; in AlignMacroSequence() local
579 Shift = 0; in AlignMacroSequence()
592 assert(Shift >= 0); in AlignMacroSequence()
909 int Shift = 0; in alignTrailingComments() local
918 assert(Shift >= 0); in alignTrailingComments()
[all …]
/freebsd-13.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-13.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-13.1/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DIntegerDivision.cpp36 ConstantInt *Shift; in generateSignedRemainderCode() local
39 Shift = Builder.getInt64(63); in generateSignedRemainderCode()
42 Shift = Builder.getInt32(31); in generateSignedRemainderCode()
57 Value *DividendSign = Builder.CreateAShr(Dividend, Shift); in generateSignedRemainderCode()
58 Value *DivisorSign = Builder.CreateAShr(Divisor, Shift); in generateSignedRemainderCode()
108 ConstantInt *Shift; in generateSignedDivisionCode() local
111 Shift = Builder.getInt64(63); in generateSignedDivisionCode()
114 Shift = Builder.getInt32(31); in generateSignedDivisionCode()
130 Value *Tmp = Builder.CreateAShr(Dividend, Shift); in generateSignedDivisionCode()
131 Value *Tmp1 = Builder.CreateAShr(Divisor, Shift); in generateSignedDivisionCode()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64AddressingModes.h810 for (int Shift = 0; Shift <= RegWidth - 16; Shift += 16) in isAnyMOVZMovAlias() local
811 if ((Value & ~(0xffffULL << Shift)) == 0) in isAnyMOVZMovAlias()
817 inline static bool isMOVZMovAlias(uint64_t Value, int Shift, int RegWidth) { in isMOVZMovAlias() argument
822 if (Value == 0 && Shift != 0) in isMOVZMovAlias()
825 return (Value & ~(0xffffULL << Shift)) == 0; in isMOVZMovAlias()
828 inline static bool isMOVNMovAlias(uint64_t Value, int Shift, int RegWidth) { in isMOVNMovAlias() argument
837 return isMOVZMovAlias(Value, Shift, RegWidth); in isMOVNMovAlias()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMicroMipsSizeReduction.cpp52 ImmField() : ImmFieldOperand(-1), Shift(0), LBound(0), HBound(0) {} in ImmField()
53 ImmField(uint8_t Shift, int16_t LBound, int16_t HBound, in ImmField()
55 : ImmFieldOperand(ImmFieldOperand), Shift(Shift), LBound(LBound), in ImmField()
58 uint8_t Shift; // Shift value member
105 uint8_t Shift() const { return Imm.Shift; } in Shift() function
327 static bool InRange(int64_t Value, unsigned short Shift, int LBound, in InRange() argument
329 int64_t Value2 = Value >> Shift; in InRange()
330 if (((Value & (int64_t)maskTrailingZeros<uint64_t>(Shift)) == Value) && in InRange()
344 if (!InRange(offset, Entry.Shift(), Entry.LBound(), Entry.HBound())) in ImmInRange()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Analysis/
H A DBlockFrequencyInfoImpl.cpp228 static uint64_t shiftRightAndRound(uint64_t N, int Shift) { in shiftRightAndRound() argument
229 assert(Shift >= 0); in shiftRightAndRound()
230 assert(Shift < 64); in shiftRightAndRound()
231 if (!Shift) in shiftRightAndRound()
233 return (N >> Shift) + (UINT64_C(1) & N >> (Shift - 1)); in shiftRightAndRound()
256 int Shift = 0; in normalize() local
258 Shift = 33; in normalize()
260 Shift = 33 - countLeadingZeros(Total); in normalize()
263 if (!Shift) { in normalize()
283 W.Amount = std::max(UINT64_C(1), shiftRightAndRound(W.Amount, Shift)); in normalize()
/freebsd-13.1/contrib/llvm-project/clang/lib/Basic/
H A DOperatorPrecedence.cpp37 return prec::Shift; in getBinOpPrecedence()
66 case tok::lessless: return prec::Shift; in getBinOpPrecedence()
/freebsd-13.1/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombinePHI.cpp994 unsigned Shift; // The amount shifted. member
998 : PHIId(pn), Shift(Sh), Inst(User) {} in PHIUsageRecord()
1003 if (Shift < RHS.Shift) return true; in operator <()
1004 if (Shift > RHS.Shift) return false; in operator <()
1012 unsigned Shift; // The amount shifted. member
1016 : PN(pn), Shift(Sh), Width(Ty->getPrimitiveSizeInBits()) {} in LoweredPHIRecord()
1020 : PN(pn), Shift(Sh), Width(0) {} in LoweredPHIRecord()
1034 return DenseMapInfo<PHINode*>::getHashValue(Val.PN) ^ (Val.Shift>>3) ^ in getHashValue()
1039 return LHS.PN == RHS.PN && LHS.Shift == RHS.Shift && in isEqual()
1116 PHIUsers.push_back(PHIUsageRecord(PHIId, Shift, UserI->user_back())); in SliceUpIllegalIntegerPHI()
[all …]
/freebsd-13.1/contrib/llvm-project/llvm/utils/TableGen/
H A DCodeBeadsGen.cpp103 unsigned Shift = i % 8; in run() local
105 Value |= (static_cast<uint8_t>(B->getValue()) << Shift); in run()
/freebsd-13.1/contrib/llvm-project/clang/include/clang/Basic/
H A DLangOptions.h486 static constexpr storage_type NAME##Shift = \
487 PREVIOUS##Shift + PREVIOUS##Width; \
490 << NAME##Shift;
571 return static_cast<TYPE>((Value & NAME##Mask) >> NAME##Shift); \
574 Value = (Value & ~NAME##Mask) | (storage_type(value) << NAME##Shift); \
/freebsd-13.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)

12345678910