Searched refs:Shift (Results 1 - 25 of 112) sorted by relevance

12345

/freebsd-11-stable/contrib/llvm-project/llvm/lib/Support/
H A DScaledNumber.cpp46 // Shift as little as possible to maximize precision.
48 int Shift = 64 - LeadingZeros; local
50 Upper = Upper << LeadingZeros | Lower >> Shift;
51 return getRounded(Upper, Shift,
52 Shift && (Lower & UINT64_C(1) << (Shift - 1)));
64 int Shift = 0; local
66 Shift -= Zeros;
74 return getAdjusted<uint32_t>(Quotient, Shift);
77 return getRounded<uint32_t>(Quotient, Shift, Remainde
86 int Shift = 0; local
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/Support/
H A DLEB128.h133 unsigned Shift = 0;
145 if (Shift >= 64 || Slice << Shift >> Shift != Slice) {
152 Value += uint64_t(*p & 0x7f) << Shift;
153 Shift += 7;
166 unsigned Shift = 0;
179 Value |= (uint64_t(Byte & 0x7f) << Shift);
180 Shift += 7;
183 if (Shift < 6
[all...]
H A DScaledNumber.h87 // Shift right and round.
88 int Shift = 64 - Width - countLeadingZeros(Digits); local
89 return getRounded<DigitsT>(Digits >> Shift, Scale + Shift,
90 Digits & (UINT64_C(1) << (Shift - 1)));
276 /// scales in place. Shift the digits as necessary to form equivalent numbers,
306 // Shift LDigits left as much as possible, then shift RDigits right.
623 ScaledNumber &operator<<=(int16_t Shift) { argument
624 shiftLeft(Shift);
627 ScaledNumber &operator>>=(int16_t Shift) { argument
700 adjustToWidth(uint64_t N, int32_t Shift) argument
730 operator <<(const ScaledNumber<DigitsT> &L, int16_t Shift) argument
736 operator >>(const ScaledNumber<DigitsT> &L, int16_t Shift) argument
833 shiftLeft(int32_t Shift) argument
860 Digits <<= Shift; local
863 shiftRight(int32_t Shift) argument
886 Digits >>= Shift; local
[all...]
H A DMathExtras.h99 T Shift = std::numeric_limits<T>::digits >> 1; local
100 T Mask = std::numeric_limits<T>::max() >> Shift;
101 while (Shift) {
103 Val >>= Shift; local
104 ZeroBits |= Shift;
106 Shift >>= 1;
107 Mask >>= Shift; local
171 for (T Shift = std::numeric_limits<T>::digits >> 1; Shift; Shift >>
[all...]
H A DLowLevelTypeImpl.h237 static uint64_t maskAndShift(uint64_t Val, uint64_t Mask, uint8_t Shift) { argument
239 return (Val & Mask) << Shift;
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Basic/
H A DOperatorPrecedence.h39 Shift = 12, // <<, >> enumerator in enum:clang::prec::Level
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AArch64/
H A DAArch64ExpandImm.cpp270 unsigned Shift = 0; // LSL amount for high bits with MOVZ/MOVN local
275 Shift = (TZ / 16) * 16;
278 unsigned Imm16 = (Imm >> Shift) & Mask;
281 AArch64_AM::getShifterImm(AArch64_AM::LSL, Shift) });
283 if (Shift == LastShift)
292 while (Shift < LastShift) {
293 Shift += 16;
294 Imm16 = (Imm >> Shift) & Mask;
299 AArch64_AM::getShifterImm(AArch64_AM::LSL, Shift) });
313 for (unsigned Shift
[all...]
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/gwp_asan/
H A Dstack_trace_compressor.cpp37 uint8_t Shift = 0; local
40 *Out |= (static_cast<uintptr_t>(In[i]) & 0x7f) << Shift;
45 Shift += 7;
48 if (Shift >= sizeof(uintptr_t) * 8)
/freebsd-11-stable/contrib/llvm-project/llvm/include/llvm/ADT/
H A DPointerEmbeddedInt.h44 Shift = sizeof(uintptr_t) * CHAR_BIT - Bits,
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 enum { NumLowBitsAvailable = T::Shift };
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/Utils/
H A DAMDKernelCodeTInfo.h38 #define PRINTCOMP(GetMacro, Shift) \
41 (int)GetMacro(C.compute_pgm_resource_registers >> Shift); \
43 #define PARSECOMP(SetMacro, Shift) \
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) \
54 RECORD(name, aname, PRINTCOMP(GetMacro, Shift), PARSECOMP(SetMacro, Shift))
/freebsd-11-stable/contrib/llvm-project/clang/lib/Basic/
H A DOperatorPrecedence.cpp37 return prec::Shift;
66 case tok::lessless: return prec::Shift;
/freebsd-11-stable/contrib/libarchive/libarchive/
H A Darchive_ppmd_private.h108 Byte Shift; /* Speed of Freq change; low Shift is for fast change */ member in struct:__anon24
109 Byte Count; /* Count to next change of Shift */
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-11-stable/contrib/llvm-project/llvm/lib/CodeGen/GlobalISel/
H A DGISelKnownBits.cpp317 dbgs() << '[' << Depth << "] Shift not known constant: " << *RHSMI);
320 uint64_t Shift = RHSKnown.getConstant().getZExtValue(); local
321 LLVM_DEBUG(dbgs() << '[' << Depth << "] Shift is " << Shift << '\n'); local
328 Known.Zero = Known.Zero.ashr(Shift);
329 Known.One = Known.One.ashr(Shift);
332 Known.Zero = Known.Zero.lshr(Shift);
333 Known.One = Known.One.lshr(Shift);
334 Known.Zero.setBitsFrom(Known.Zero.getBitWidth() - Shift);
337 Known.Zero = Known.Zero.shl(Shift);
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/lib/Format/
H A DWhitespaceManager.cpp237 int Shift = 0; local
271 Shift = 0;
280 Shift = Column - Changes[i].StartOfTokenColumn;
281 Changes[i].Spaces += Shift;
291 Changes[i].Spaces += Shift;
294 assert(Shift >= 0);
295 Changes[i].StartOfTokenColumn += Shift;
297 Changes[i + 1].PreviousEndOfTokenColumn += Shift;
447 int Shift = 0; local
451 Shift
695 int Shift = 0; local
[all...]
/freebsd-11-stable/contrib/llvm-project/lldb/tools/lldb-server/
H A DLLDBServerUtilities.cpp51 channel_then_categories.Shift(); // Shift off the channel
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/Utils/
H A DIntegerDivision.cpp36 ConstantInt *Shift; local
39 Shift = Builder.getInt64(63);
42 Shift = Builder.getInt32(31);
57 Value *DividendSign = Builder.CreateAShr(Dividend, Shift);
58 Value *DivisorSign = Builder.CreateAShr(Divisor, Shift);
108 ConstantInt *Shift; local
111 Shift = Builder.getInt64(63);
114 Shift = Builder.getInt32(31);
130 Value *Tmp = Builder.CreateAShr(Dividend, Shift);
131 Value *Tmp1 = Builder.CreateAShr(Divisor, Shift);
[all...]
/freebsd-11-stable/contrib/llvm-project/clang/include/clang/Tooling/ASTDiff/
H A DASTDiff.h39 int Depth, Height, Shift = 0; member in struct:clang::diff::Node
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Transforms/InstCombine/
H A DInstCombinePHI.cpp903 unsigned Shift; // The amount shifted. member in struct:__anon2616::PHIUsageRecord
907 : PHIId(pn), Shift(Sh), Inst(User) {}
912 if (Shift < RHS.Shift) return true;
913 if (Shift > RHS.Shift) return false;
921 unsigned Shift; // The amount shifted. member in struct:__anon2616::LoweredPHIRecord
925 : PN(pn), Shift(Sh), Width(Ty->getPrimitiveSizeInBits()) {}
929 : PN(pn), Shift(Sh), Width(0) {}
943 return DenseMapInfo<PHINode*>::getHashValue(Val.PN) ^ (Val.Shift>>
1024 unsigned Shift = cast<ConstantInt>(UserI->getOperand(1))->getZExtValue(); local
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Analysis/
H A DBlockFrequencyInfoImpl.cpp206 static uint64_t shiftRightAndRound(uint64_t N, int Shift) {
207 assert(Shift >= 0);
208 assert(Shift < 64);
209 if (!Shift)
211 return (N >> Shift) + (UINT64_C(1) & N >> (Shift - 1));
234 int Shift = 0; local
236 Shift = 33;
238 Shift = 33 - countLeadingZeros(Total);
241 if (!Shift) {
[all...]
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/Mips/
H A DMicroMipsSizeReduction.cpp52 ImmField() : ImmFieldOperand(-1), Shift(0), LBound(0), HBound(0) {}
53 ImmField(uint8_t Shift, int16_t LBound, int16_t HBound, argument
55 : ImmFieldOperand(ImmFieldOperand), Shift(Shift), LBound(LBound),
58 uint8_t Shift; // Shift value member in struct:__anon2316::ImmField
105 uint8_t Shift() const { return Imm.Shift; } function in struct:__anon2316::ReduceEntry
213 // ImmField(Shift, LBound, HBound, ImmFieldPosition)
326 // bits equal to Shift an
327 InRange(int64_t Value, unsigned short Shift, int LBound, int HBound) argument
[all...]
/freebsd-11-stable/contrib/llvm-project/lldb/include/lldb/Utility/
H A DCompletionRequest.h120 m_parsed_line.Shift();
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AArch64/MCTargetDesc/
H A DAArch64AddressingModes.h802 for (int Shift = 0; Shift <= RegWidth - 16; Shift += 16)
803 if ((Value & ~(0xffffULL << Shift)) == 0)
809 inline static bool isMOVZMovAlias(uint64_t Value, int Shift, int RegWidth) { argument
814 if (Value == 0 && Shift != 0)
817 return (Value & ~(0xffffULL << Shift)) == 0;
820 inline static bool isMOVNMovAlias(uint64_t Value, int Shift, int RegWidth) { argument
829 return isMOVZMovAlias(Value, Shift, RegWidth);
/freebsd-11-stable/stand/pc98/boot0.5/
H A Dputssjis.s35 # Display string with Shift-JIS support
113 # Convert Shift-JIS into JIS.
/freebsd-11-stable/contrib/llvm-project/llvm/lib/Target/AMDGPU/
H A DGCNRegBankReassign.cpp501 unsigned Shift = countTrailingZeros(LM);
502 if (Shift >= NUM_VGPR_BANKS)
505 FreeBanks = ((VB >> Shift) | (VB << (NUM_VGPR_BANKS - Shift))) &
508 unsigned Shift = countTrailingZeros(LM) >> 1;
509 if (Shift >= NUM_SGPR_BANKS)
512 FreeBanks = ((SB >> Shift) | (SB << (NUM_SGPR_BANKS - Shift))) &
/freebsd-11-stable/contrib/llvm-project/compiler-rt/lib/builtins/
H A Dfp_add_impl.inc85 // Shift the significands to give us round, guard and sticky, and set the
92 // Shift the significand of b by the difference in exponents, with a sticky
144 // Shift the significand into place, and mask off the implicit bit.

Completed in 163 milliseconds

12345