Home
last modified time | relevance | path

Searched refs:Divisor (Results 1 – 24 of 24) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DBypassSlowDivision.cpp32 Value *Divisor; member
35 : SignedOp(InSignedOp), Dividend(InDividend), Divisor(InDivisor) {} in DivOpInfo()
53 Val1.Divisor == Val2.Divisor; in isEqual()
66 reinterpret_cast<uintptr_t>(Val.Divisor)) ^ in getHashValue()
83 Value *Divisor = I->getOperand(1); in insertFastDiv() local
85 if (isa<ConstantInt>(Divisor) || in insertFastDiv()
86 (isa<ConstantInt>(Dividend) && isa<ConstantInt>(Divisor))) { in insertFastDiv()
104 SlowQuotientV = SlowBuilder.CreateSDiv(Dividend, Divisor); in insertFastDiv()
105 SlowRemainderV = SlowBuilder.CreateSRem(Dividend, Divisor); in insertFastDiv()
107 SlowQuotientV = SlowBuilder.CreateUDiv(Dividend, Divisor); in insertFastDiv()
[all …]
DIntegerDivision.cpp34 static Value *generateSignedRemainderCode(Value *Dividend, Value *Divisor, in generateSignedRemainderCode() argument
59 Value *DivisorSign = Builder.CreateAShr(Divisor, Shift); in generateSignedRemainderCode()
61 Value *DvsXor = Builder.CreateXor(Divisor, DivisorSign); in generateSignedRemainderCode()
80 static Value *generatedUnsignedRemainderCode(Value *Dividend, Value *Divisor, in generatedUnsignedRemainderCode() argument
89 Value *Quotient = Builder.CreateUDiv(Dividend, Divisor); in generatedUnsignedRemainderCode()
90 Value *Product = Builder.CreateMul(Divisor, Quotient); in generatedUnsignedRemainderCode()
104 static Value *generateSignedDivisionCode(Value *Dividend, Value *Divisor, in generateSignedDivisionCode() argument
132 Value *Tmp1 = Builder.CreateAShr(Divisor, Shift); in generateSignedDivisionCode()
135 Value *Tmp3 = Builder.CreateXor(Tmp1, Divisor); in generateSignedDivisionCode()
151 static Value *generateUnsignedDivisionCode(Value *Dividend, Value *Divisor, in generateUnsignedDivisionCode() argument
[all …]
/external/llvm/lib/Support/
DScaledNumber.cpp59 uint32_t Divisor) { in divide32() argument
61 assert(Divisor && "expected non-zero divisor"); in divide32()
70 uint64_t Quotient = Dividend64 / Divisor; in divide32()
71 uint64_t Remainder = Dividend64 % Divisor; in divide32()
78 return getRounded<uint32_t>(Quotient, Shift, Remainder >= getHalf(Divisor)); in divide32()
82 uint64_t Divisor) { in divide64() argument
84 assert(Divisor && "expected non-zero divisor"); in divide64()
88 if (int Zeros = countTrailingZeros(Divisor)) { in divide64()
90 Divisor >>= Zeros; in divide64()
94 if (Divisor == 1) in divide64()
[all …]
/external/syslinux/gnu-efi/gnu-efi-3.0/lib/x86_64/
Dmath.c137 IN UINTN Divisor, in DivU64x32() argument
145 *Remainder = Dividend % Divisor; in DivU64x32()
146 return Dividend / Divisor; in DivU64x32()
151 ASSERT (Divisor != 0); in DivU64x32()
152 ASSERT ((Divisor >> 31) == 0); in DivU64x32()
166 cmp eax, Divisor ; Is Rem >= Divisor? in DivU64x32()
170 and eax, Divisor ; and in DivU64x32()
/external/syslinux/gnu-efi/gnu-efi-3.0/lib/ia32/
Dmath.c137 IN UINTN Divisor, in DivU64x32() argument
145 *Remainder = Dividend % Divisor; in DivU64x32()
146 return Dividend / Divisor; in DivU64x32()
151 ASSERT (Divisor != 0); in DivU64x32()
152 ASSERT ((Divisor >> 31) == 0); in DivU64x32()
166 cmp eax, Divisor ; Is Rem >= Divisor? in DivU64x32()
170 and eax, Divisor ; and in DivU64x32()
/external/syslinux/gnu-efi/gnu-efi-3.0/lib/ia64/
Dmath.c75 IN UINTN Divisor, in DivU64x32() argument
81 ASSERT (Divisor != 0); in DivU64x32()
84 *Remainder = Dividend % Divisor; in DivU64x32()
87 return Dividend / Divisor; in DivU64x32()
/external/llvm/include/llvm/Support/
DScaledNumber.h139 std::pair<uint64_t, int16_t> divide64(uint64_t Dividend, uint64_t Divisor);
146 std::pair<uint32_t, int16_t> divide32(uint32_t Dividend, uint32_t Divisor);
154 std::pair<DigitsT, int16_t> getQuotient(DigitsT Dividend, DigitsT Divisor) { in getQuotient() argument
162 if (!Divisor) in getQuotient()
166 return divide64(Dividend, Divisor); in getQuotient()
167 return divide32(Dividend, Divisor); in getQuotient()
172 uint32_t Divisor) { in getQuotient32() argument
173 return getQuotient(Dividend, Divisor); in getQuotient32()
178 uint64_t Divisor) { in getQuotient64() argument
179 return getQuotient(Dividend, Divisor); in getQuotient64()
[all …]
/external/llvm/lib/CodeGen/
DTargetSchedule.cpp38 static unsigned gcd(unsigned Dividend, unsigned Divisor) { in gcd() argument
40 while(Divisor) { in gcd()
41 unsigned Rem = Dividend % Divisor; in gcd()
42 Dividend = Divisor; in gcd()
43 Divisor = Rem; in gcd()
/external/clang/test/SemaTemplate/
Dinstantiate-static-var.cpp5 template<typename T, T Divisor>
8 …static const T value = 10 / Divisor; // expected-error{{in-class initializer for static data membe…
/external/llvm/lib/IR/
DGCOV.cpp431 static uint32_t safeDiv(uint64_t Numerator, uint64_t Divisor) { in safeDiv() argument
434 return Numerator / Divisor; in safeDiv()
440 static uint32_t branchDiv(uint64_t Numerator, uint64_t Divisor) { in branchDiv() argument
443 if (Numerator == Divisor) in branchDiv()
446 uint8_t Res = (Numerator * 100 + Divisor / 2) / Divisor; in branchDiv()
/external/llvm/lib/CodeGen/SelectionDAG/
DTargetLowering.cpp2817 SDValue TargetLowering::BuildSDIVPow2(SDNode *N, const APInt &Divisor, in BuildSDIVPow2() argument
2831 SDValue TargetLowering::BuildSDIV(SDNode *N, const APInt &Divisor, in BuildSDIV() argument
2846 return BuildExactSDIV(*this, N->getOperand(0), Divisor, dl, DAG, *Created); in BuildSDIV()
2848 APInt::ms magics = Divisor.magic(); in BuildSDIV()
2865 if (Divisor.isStrictlyPositive() && magics.m.isNegative()) { in BuildSDIV()
2870 if (Divisor.isNegative() && magics.m.isStrictlyPositive()) { in BuildSDIV()
2895 SDValue TargetLowering::BuildUDIV(SDNode *N, const APInt &Divisor, in BuildUDIV() argument
2911 APInt::mu magics = Divisor.magicu(); in BuildUDIV()
2917 if (magics.a != 0 && !Divisor[0]) { in BuildUDIV()
2918 unsigned Shift = Divisor.countTrailingZeros(); in BuildUDIV()
[all …]
/external/llvm/include/llvm/Target/
DTargetLowering.h2923 SDValue BuildSDIV(SDNode *N, const APInt &Divisor, SelectionDAG &DAG,
2926 SDValue BuildUDIV(SDNode *N, const APInt &Divisor, SelectionDAG &DAG,
2934 virtual SDValue BuildSDIVPow2(SDNode *N, const APInt &Divisor,
/external/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp1220 static Instruction *CvtFDivConstToReciprocal(Value *Dividend, Constant *Divisor, in CvtFDivConstToReciprocal() argument
1222 if (!isa<ConstantFP>(Divisor)) // TODO: handle vectors. in CvtFDivConstToReciprocal()
1225 const APFloat &FpVal = cast<ConstantFP>(Divisor)->getValueAPF(); in CvtFDivConstToReciprocal()
/external/llvm/lib/Target/AArch64/
DAArch64ISelLowering.h521 SDValue BuildSDIVPow2(SDNode *N, const APInt &Divisor, SelectionDAG &DAG,
DAArch64ISelLowering.cpp7493 AArch64TargetLowering::BuildSDIVPow2(SDNode *N, const APInt &Divisor, in BuildSDIVPow2() argument
7503 !(Divisor.isPowerOf2() || (-Divisor).isPowerOf2())) in BuildSDIVPow2()
7508 unsigned Lg2 = Divisor.countTrailingZeros(); in BuildSDIVPow2()
7530 if (Divisor.isNonNegative()) in BuildSDIVPow2()
/external/syslinux/efi32/include/efi/
Defilib.h318 IN UINTN Divisor,
/external/syslinux/gnu-efi/gnu-efi-3.0/inc/
Defilib.h318 IN UINTN Divisor,
/external/syslinux/efi64/include/efi/
Defilib.h318 IN UINTN Divisor,
/external/llvm/lib/Target/PowerPC/
DPPCISelLowering.h559 SDValue BuildSDIVPow2(SDNode *N, const APInt &Divisor, SelectionDAG &DAG,
DPPCISelLowering.cpp11202 PPCTargetLowering::BuildSDIVPow2(SDNode *N, const APInt &Divisor, in BuildSDIVPow2() argument
11210 !(Divisor.isPowerOf2() || (-Divisor).isPowerOf2())) in BuildSDIVPow2()
11216 bool IsNegPow2 = (-Divisor).isPowerOf2(); in BuildSDIVPow2()
11217 unsigned Lg2 = (IsNegPow2 ? -Divisor : Divisor).countTrailingZeros(); in BuildSDIVPow2()
/external/llvm/lib/Target/Mips/
DMipsISelLowering.cpp948 MachineOperand &Divisor = MI.getOperand(2); in insertDivByZeroTrap() local
951 .addReg(Divisor.getReg(), getKillRegState(Divisor.isKill())) in insertDivByZeroTrap()
960 Divisor.setIsKill(false); in insertDivByZeroTrap()
/external/swiftshader/third_party/subzero/src/
DIceTargetLoweringX86BaseImpl.h2354 const int32_t Divisor = C->getValue();
2355 const uint32_t UDivisor = Divisor;
2356 if (Divisor > 0 && llvm::isPowerOf2_32(UDivisor)) {
2454 const int32_t Divisor = C->getValue();
2455 const uint32_t UDivisor = Divisor;
2456 if (Divisor > 0 && llvm::isPowerOf2_32(UDivisor)) {
/external/llvm/lib/Analysis/
DDependenceAnalysis.cpp1584 const SCEVConstant *Divisor) { in isRemainderZero() argument
1586 const APInt &ConstDivisor = Divisor->getAPInt(); in isRemainderZero()
/external/libexif/po/
Dde.po4170 "Aufnahme des Bildes an. Wenn der Divisor 0 ist, wurde kein Digitalzoom "