Home
last modified time | relevance | path

Searched refs:Quotient (Results 1 – 25 of 37) sorted by relevance

12

/external/boringssl/src/crypto/fipsmodule/bn/
Dbn_tests.txt6044 # Quotient tests.
6046 # These test vectors satisfy Quotient = A / B, rounded towards zero, and
6047 # Remainder = A - B * Quotient.
6049 Quotient = 1
6054 Quotient = -2
6059 Quotient = -4
6064 Quotient = 8
6069 Quotient = 10
6074 Quotient = -20
6079 Quotient = -40
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Transforms/Utils/
DIntegerDivision.cpp49 Instruction* Quotient = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0)); in TEST() local
50 EXPECT_TRUE(Quotient && Quotient->getOpcode() == Instruction::Sub); in TEST()
79 Instruction* Quotient = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0)); in TEST() local
80 EXPECT_TRUE(Quotient && Quotient->getOpcode() == Instruction::PHI); in TEST()
170 Instruction* Quotient = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0)); in TEST() local
171 EXPECT_TRUE(Quotient && Quotient->getOpcode() == Instruction::Sub); in TEST()
200 Instruction* Quotient = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0)); in TEST() local
201 EXPECT_TRUE(Quotient && Quotient->getOpcode() == Instruction::PHI); in TEST()
/external/llvm/unittests/Transforms/Utils/
DIntegerDivision.cpp49 Instruction* Quotient = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0)); in TEST() local
50 EXPECT_TRUE(Quotient && Quotient->getOpcode() == Instruction::Sub); in TEST()
79 Instruction* Quotient = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0)); in TEST() local
80 EXPECT_TRUE(Quotient && Quotient->getOpcode() == Instruction::PHI); in TEST()
170 Instruction* Quotient = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0)); in TEST() local
171 EXPECT_TRUE(Quotient && Quotient->getOpcode() == Instruction::Sub); in TEST()
200 Instruction* Quotient = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0)); in TEST() local
201 EXPECT_TRUE(Quotient && Quotient->getOpcode() == Instruction::PHI); in TEST()
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Support/
DScaledNumber.cpp70 uint64_t Quotient = Dividend64 / Divisor; in divide32() local
74 if (Quotient > UINT32_MAX) in divide32()
75 return getAdjusted<uint32_t>(Quotient, Shift); in divide32()
78 return getRounded<uint32_t>(Quotient, Shift, Remainder >= getHalf(Divisor)); in divide32()
104 uint64_t Quotient = Dividend / Divisor; in divide64() local
108 while (!(Quotient >> 63) && Dividend) { in divide64()
115 Quotient <<= 1; in divide64()
117 Quotient |= 1; in divide64()
122 return getRounded(Quotient, Shift, Dividend >= getHalf(Divisor)); in divide64()
DAPInt.cpp1408 unsigned rhsWords, WordType *Quotient, WordType *Remainder) { in divide() argument
1510 if (Quotient) { in divide()
1512 Quotient[i] = Make_64(Q[i*2+1], Q[i*2]); in divide()
1563 APInt Quotient(BitWidth, 0); // to hold result. in udiv() local
1564 divide(U.pVal, lhsWords, RHS.U.pVal, rhsWords, Quotient.U.pVal, nullptr); in udiv()
1565 return Quotient; in udiv()
1596 APInt Quotient(BitWidth, 0); // to hold result. in udiv() local
1597 divide(U.pVal, lhsWords, &RHS, 1, Quotient.U.pVal, nullptr); in udiv()
1598 return Quotient; in udiv()
1716 APInt &Quotient, APInt &Remainder) { in udivrem() argument
[all …]
/external/llvm/lib/Support/
DScaledNumber.cpp70 uint64_t Quotient = Dividend64 / Divisor; in divide32() local
74 if (Quotient > UINT32_MAX) in divide32()
75 return getAdjusted<uint32_t>(Quotient, Shift); in divide32()
78 return getRounded<uint32_t>(Quotient, Shift, Remainder >= getHalf(Divisor)); in divide32()
104 uint64_t Quotient = Dividend / Divisor; in divide64() local
108 while (!(Quotient >> 63) && Dividend) { in divide64()
115 Quotient <<= 1; in divide64()
117 Quotient |= 1; in divide64()
122 return getRounded(Quotient, Shift, Dividend >= getHalf(Divisor)); in divide64()
DAPInt.cpp1668 unsigned rhsWords, APInt *Quotient, APInt *Remainder) { in divide() argument
1771 if (Quotient) { in divide()
1773 if (Quotient->BitWidth != LHS.BitWidth) { in divide()
1774 if (Quotient->isSingleWord()) in divide()
1775 Quotient->VAL = 0; in divide()
1777 delete [] Quotient->pVal; in divide()
1778 Quotient->BitWidth = LHS.BitWidth; in divide()
1779 if (!Quotient->isSingleWord()) in divide()
1780 Quotient->pVal = getClearedMemory(Quotient->getNumWords()); in divide()
1782 Quotient->clearAllBits(); in divide()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/Utils/
DBypassSlowDivision.cpp48 Value *Quotient; member
52 : Quotient(InQuotient), Remainder(InRemainder) {} in QuotRemPair()
60 Value *Quotient = nullptr; member
173 return isDivisionOp() ? Value.Quotient : Value.Remainder; in getReplacement()
273 DivRemPair.Quotient = Builder.CreateSDiv(Dividend, Divisor); in createSlowBB()
276 DivRemPair.Quotient = Builder.CreateUDiv(Dividend, Divisor); in createSlowBB()
302 DivRemPair.Quotient = in createFastBB()
317 QuoPhi->addIncoming(LHS.Quotient, LHS.BB); in createDivRemPhiNodes()
318 QuoPhi->addIncoming(RHS.Quotient, RHS.BB); in createDivRemPhiNodes()
418 Long.Quotient = ConstantInt::get(getSlowType(), 0); in insertFastDivAndRem()
[all …]
DIntegerDivision.cpp89 Value *Quotient = Builder.CreateUDiv(Dividend, Divisor); in generatedUnsignedRemainderCode() local
90 Value *Product = Builder.CreateMul(Divisor, Quotient); in generatedUnsignedRemainderCode()
93 if (Instruction *UDiv = dyn_cast<Instruction>(Quotient)) in generatedUnsignedRemainderCode()
449 Value *Quotient = generateSignedDivisionCode(Div->getOperand(0), in expandDivision() local
454 Div->replaceAllUsesWith(Quotient); in expandDivision()
469 Value *Quotient = generateUnsignedDivisionCode(Div->getOperand(0), in expandDivision() local
472 Div->replaceAllUsesWith(Quotient); in expandDivision()
/external/grpc-grpc/src/csharp/Grpc.Examples/
DMath.cs246 public long Quotient { property in Math.DivReply
277 if (Quotient != other.Quotient) return false; in Equals()
285 if (Quotient != 0L) hash ^= Quotient.GetHashCode(); in GetHashCode()
300 if (Quotient != 0L) { in WriteTo()
302 output.WriteInt64(Quotient); in WriteTo()
316 if (Quotient != 0L) { in CalculateSize()
317 size += 1 + pb::CodedOutputStream.ComputeInt64Size(Quotient); in CalculateSize()
333 if (other.Quotient != 0L) { in MergeFrom()
334 Quotient = other.Quotient; in MergeFrom()
351 Quotient = input.ReadInt64(); in MergeFrom()
DMathServiceImpl.cs79 return new DivReply { Quotient = quotient, Remainder = remainder }; in DivInternal()
/external/swiftshader/third_party/llvm-subzero/lib/Support/
DAPInt.cpp1642 unsigned rhsWords, APInt *Quotient, APInt *Remainder) { in divide() argument
1745 if (Quotient) { in divide()
1747 if (Quotient->BitWidth != LHS.BitWidth) { in divide()
1748 if (Quotient->isSingleWord()) in divide()
1749 Quotient->VAL = 0; in divide()
1751 delete [] Quotient->pVal; in divide()
1752 Quotient->BitWidth = LHS.BitWidth; in divide()
1753 if (!Quotient->isSingleWord()) in divide()
1754 Quotient->pVal = getClearedMemory(Quotient->getNumWords()); in divide()
1756 Quotient->clearAllBits(); in divide()
[all …]
/external/grpc-grpc/src/csharp/Grpc.Examples.Tests/
DMathClientServerTests.cs65 Assert.AreEqual(3, response.Quotient); in Div1()
73 Assert.AreEqual(0, response.Quotient); in Div2()
88 Assert.AreEqual(3, response.Quotient); in DivAsync()
174 … CollectionAssert.AreEqual(new long[] { 3, 4, 3 }, result.Select((divReply) => divReply.Quotient)); in DivMany()
DMathServiceImplTestabilityTest.cs43 Assert.AreEqual(5, response.Quotient); in ServerCallImplIsTestable()
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DAPInt.h175 APInt *Quotient, APInt *Remainder);
806 APInt &Quotient, APInt &Remainder);
809 APInt &Quotient, APInt &Remainder) { in sdivrem() argument
812 APInt::udivrem(-LHS, -RHS, Quotient, Remainder); in sdivrem()
814 APInt::udivrem(-LHS, RHS, Quotient, Remainder); in sdivrem()
815 Quotient = -Quotient; in sdivrem()
818 APInt::udivrem(LHS, -RHS, Quotient, Remainder); in sdivrem()
819 Quotient = -Quotient; in sdivrem()
821 APInt::udivrem(LHS, RHS, Quotient, Remainder); in sdivrem()
/external/swiftshader/third_party/LLVM/lib/Support/
DAPInt.cpp1767 APInt *Quotient, APInt *Remainder) in divide() argument
1871 if (Quotient) { in divide()
1873 if (Quotient->BitWidth != LHS.BitWidth) { in divide()
1874 if (Quotient->isSingleWord()) in divide()
1875 Quotient->VAL = 0; in divide()
1877 delete [] Quotient->pVal; in divide()
1878 Quotient->BitWidth = LHS.BitWidth; in divide()
1879 if (!Quotient->isSingleWord()) in divide()
1880 Quotient->pVal = getClearedMemory(Quotient->getNumWords()); in divide()
1882 Quotient->clearAllBits(); in divide()
[all …]
/external/llvm/lib/Transforms/Utils/
DIntegerDivision.cpp89 Value *Quotient = Builder.CreateUDiv(Dividend, Divisor); in generatedUnsignedRemainderCode() local
90 Value *Product = Builder.CreateMul(Divisor, Quotient); in generatedUnsignedRemainderCode()
93 if (Instruction *UDiv = dyn_cast<Instruction>(Quotient)) in generatedUnsignedRemainderCode()
449 Value *Quotient = generateSignedDivisionCode(Div->getOperand(0), in expandDivision() local
454 Div->replaceAllUsesWith(Quotient); in expandDivision()
469 Value *Quotient = generateUnsignedDivisionCode(Div->getOperand(0), in expandDivision() local
472 Div->replaceAllUsesWith(Quotient); in expandDivision()
DBypassSlowDivision.cpp39 PHINode *Quotient; member
43 : Quotient(InQuotient), Remainder(InRemainder) {} in DivPhiNodes()
194 I->replaceAllUsesWith(Value.Quotient); in reuseOrInsertFastDiv()
/external/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp92 static bool IsMultiple(const APInt &C1, const APInt &C2, APInt &Quotient, in IsMultiple() argument
107 APInt::sdivrem(C1, C2, Quotient, Remainder); in IsMultiple()
109 APInt::udivrem(C1, C2, Quotient, Remainder); in IsMultiple()
835 APInt Quotient(C1->getBitWidth(), /*Val=*/0ULL, IsSigned); in commonIDivTransforms() local
838 if (IsMultiple(*C2, *C1, Quotient, IsSigned)) { in commonIDivTransforms()
840 I.getOpcode(), X, ConstantInt::get(X->getType(), Quotient)); in commonIDivTransforms()
846 if (IsMultiple(*C1, *C2, Quotient, IsSigned)) { in commonIDivTransforms()
848 Instruction::Mul, X, ConstantInt::get(X->getType(), Quotient)); in commonIDivTransforms()
861 APInt Quotient(C1->getBitWidth(), /*Val=*/0ULL, IsSigned); in commonIDivTransforms() local
866 if (IsMultiple(*C2, C1Shifted, Quotient, IsSigned)) { in commonIDivTransforms()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Transforms/InstCombine/
DInstCombineMulDivRem.cpp632 static bool isMultiple(const APInt &C1, const APInt &C2, APInt &Quotient, in isMultiple() argument
646 APInt::sdivrem(C1, C2, Quotient, Remainder); in isMultiple()
648 APInt::udivrem(C1, C2, Quotient, Remainder); in isMultiple()
689 APInt Quotient(C1->getBitWidth(), /*Val=*/0ULL, IsSigned); in commonIDivTransforms() local
692 if (isMultiple(*C2, *C1, Quotient, IsSigned)) { in commonIDivTransforms()
694 ConstantInt::get(Ty, Quotient)); in commonIDivTransforms()
700 if (isMultiple(*C1, *C2, Quotient, IsSigned)) { in commonIDivTransforms()
702 ConstantInt::get(Ty, Quotient)); in commonIDivTransforms()
713 APInt Quotient(C1->getBitWidth(), /*Val=*/0ULL, IsSigned); in commonIDivTransforms() local
718 if (isMultiple(*C2, C1Shifted, Quotient, IsSigned)) { in commonIDivTransforms()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/
DAMDGPUCodeGenPrepare.cpp698 Value *Quotient = getMulHu(Builder, Tmp0, Num); in expandDivRem32() local
701 Value *Num_S_Remainder = Builder.CreateMul(Quotient, Den); in expandDivRem32()
722 Value *Quotient_A_One = Builder.CreateAdd(Quotient, One); in expandDivRem32()
725 Value *Quotient_S_One = Builder.CreateSub(Quotient, One); in expandDivRem32()
728 Value *Div = Builder.CreateSelect(Tmp1_0_CC, Quotient, Quotient_A_One); in expandDivRem32()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DAPInt.h192 const WordType *RHS, unsigned rhsWords, WordType *Quotient,
1086 static void udivrem(const APInt &LHS, const APInt &RHS, APInt &Quotient,
1088 static void udivrem(const APInt &LHS, uint64_t RHS, APInt &Quotient,
1091 static void sdivrem(const APInt &LHS, const APInt &RHS, APInt &Quotient,
1093 static void sdivrem(const APInt &LHS, int64_t RHS, APInt &Quotient,
/external/llvm/lib/Target/AMDGPU/
DAMDGPUInstrInfo.td160 // Special case divide FMA with scale and flags (src0 = Quotient,
165 // Special case divide fixup and flags(src0 = Quotient, src1 =
/external/llvm/include/llvm/ADT/
DAPInt.h181 unsigned rhsWords, APInt *Quotient, APInt *Remainder);
947 static void udivrem(const APInt &LHS, const APInt &RHS, APInt &Quotient,
950 static void sdivrem(const APInt &LHS, const APInt &RHS, APInt &Quotient,
/external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
DAPInt.h185 unsigned rhsWords, APInt *Quotient, APInt *Remainder);
923 static void udivrem(const APInt &LHS, const APInt &RHS, APInt &Quotient,
926 static void sdivrem(const APInt &LHS, const APInt &RHS, APInt &Quotient,

12