HomeSort by relevance Sort by last modified time
    Searched refs:Quotient (Results 1 - 25 of 30) sorted by null

1 2

  /external/llvm/lib/Support/
ScaledNumber.cpp 70 uint64_t Quotient = Dividend64 / Divisor;
73 // If Quotient needs to be shifted, leave the rounding to getAdjusted().
74 if (Quotient > UINT32_MAX)
75 return getAdjusted<uint32_t>(Quotient, Shift);
78 return getRounded<uint32_t>(Quotient, Shift, Remainder >= getHalf(Divisor));
104 uint64_t Quotient = Dividend / Divisor;
107 // Continue building the quotient with long division.
108 while (!(Quotient >> 63) && Dividend) {
114 // Get the next bit of Quotient.
115 Quotient <<= 1
    [all...]
APInt.cpp     [all...]
  /external/llvm/unittests/Transforms/Utils/
IntegerDivision.cpp 49 Instruction* Quotient = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0));
50 EXPECT_TRUE(Quotient && Quotient->getOpcode() == Instruction::Sub);
79 Instruction* Quotient = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0));
80 EXPECT_TRUE(Quotient && Quotient->getOpcode() == Instruction::PHI);
170 Instruction* Quotient = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0));
171 EXPECT_TRUE(Quotient && Quotient->getOpcode() == Instruction::Sub);
200 Instruction* Quotient = dyn_cast<Instruction>(cast<User>(Ret)->getOperand(0))
    [all...]
  /device/linaro/bootloader/edk2/StdLib/LibC/CRT/
Gcc.c 62 // Return the quotient of the signed division of Dividend and Divisor
72 INT64 Quotient;
74 Quotient = DivS64x64Remainder ((INT64) Dividend, (INT64) Divisor, NULL);
75 DEBUG((DEBUG_INFO, "%a: %Ld / %Ld = %Ld\n", __func__, Dividend, Divisor, Quotient));
77 return Quotient;
146 // Return the quotient of the unsigned division of a and b.
  /external/swiftshader/third_party/llvm-subzero/lib/Support/
APInt.cpp     [all...]
  /external/llvm/lib/Transforms/Utils/
BypassSlowDivision.cpp 39 PHINode *Quotient;
43 : Quotient(InQuotient), Remainder(InRemainder) {}
193 // Replace all uses of div instruction with quotient phi node
194 I->replaceAllUsesWith(Value.Quotient);
IntegerDivision.cpp 82 // Remainder = Dividend - Quotient*Divisor
86 // ; %quotient = udiv i32 %dividend, %divisor
87 // ; %product = mul i32 %divisor, %quotient
89 Value *Quotient = Builder.CreateUDiv(Dividend, Divisor);
90 Value *Product = Builder.CreateMul(Divisor, Quotient);
93 if (Instruction *UDiv = dyn_cast<Instruction>(Quotient))
99 /// Generate code to divide two signed integers. Returns the quotient, rounded
149 /// Returns the quotient, rounded towards 0. Builder's insert point should
449 Value *Quotient = generateSignedDivisionCode(Div->getOperand(0),
454 Div->replaceAllUsesWith(Quotient);
    [all...]
  /external/swiftshader/third_party/LLVM/include/llvm/ADT/
APInt.h 175 APInt *Quotient, APInt *Remainder);
800 /// quotient and remainder. This function does both operations in the same
806 APInt &Quotient, APInt &Remainder);
809 APInt &Quotient, APInt &Remainder) {
812 APInt::udivrem(-LHS, -RHS, Quotient, Remainder);
814 APInt::udivrem(-LHS, RHS, Quotient, Remainder);
815 Quotient = -Quotient;
818 APInt::udivrem(LHS, -RHS, Quotient, Remainder);
819 Quotient = -Quotient
    [all...]
  /external/swiftshader/third_party/LLVM/lib/Support/
APInt.cpp     [all...]
  /external/llvm/lib/Transforms/InstCombine/
InstCombineMulDivRem.cpp 91 /// \brief True if C2 is a multiple of C1. Quotient contains C2/C1.
92 static bool IsMultiple(const APInt &C1, const APInt &C2, APInt &Quotient,
107 APInt::sdivrem(C1, C2, Quotient, Remainder);
109 APInt::udivrem(C1, C2, Quotient, Remainder);
835 APInt Quotient(C1->getBitWidth(), /*Val=*/0ULL, IsSigned);
838 if (IsMultiple(*C2, *C1, Quotient, IsSigned)) {
840 I.getOpcode(), X, ConstantInt::get(X->getType(), Quotient));
846 if (IsMultiple(*C1, *C2, Quotient, IsSigned)) {
848 Instruction::Mul, X, ConstantInt::get(X->getType(), Quotient));
861 APInt Quotient(C1->getBitWidth(), /*Val=*/0ULL, IsSigned)
    [all...]
  /external/boringssl/src/crypto/fipsmodule/bn/
check_bn_tests.go 208 case "Quotient":
209 if checkKeys(test, "A", "B", "Quotient", "Remainder") {
211 checkResult(test, "A / B", "Quotient", q)
  /external/llvm/include/llvm/ADT/
APInt.h 181 unsigned rhsWords, APInt *Quotient, APInt *Remainder);
943 /// quotient and remainder. This function does both operations in the same
    [all...]
  /external/swiftshader/third_party/llvm-subzero/include/llvm/ADT/
APInt.h 185 unsigned rhsWords, APInt *Quotient, APInt *Remainder);
919 /// quotient and remainder. This function does both operations in the same
923 static void udivrem(const APInt &LHS, const APInt &RHS, APInt &Quotient,
926 static void sdivrem(const APInt &LHS, const APInt &RHS, APInt &Quotient,
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-3957855/prebuilt_include/llvm/include/llvm/ADT/
APInt.h 180 unsigned rhsWords, APInt *Quotient, APInt *Remainder);
942 /// quotient and remainder. This function does both operations in the same
946 static void udivrem(const APInt &LHS, const APInt &RHS, APInt &Quotient,
949 static void sdivrem(const APInt &LHS, const APInt &RHS, APInt &Quotient,
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-3960126/prebuilt_include/llvm/include/llvm/ADT/
APInt.h 180 unsigned rhsWords, APInt *Quotient, APInt *Remainder);
942 /// quotient and remainder. This function does both operations in the same
946 static void udivrem(const APInt &LHS, const APInt &RHS, APInt &Quotient,
949 static void sdivrem(const APInt &LHS, const APInt &RHS, APInt &Quotient,
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-3977809/prebuilt_include/llvm/include/llvm/ADT/
APInt.h 180 unsigned rhsWords, APInt *Quotient, APInt *Remainder);
942 /// quotient and remainder. This function does both operations in the same
946 static void udivrem(const APInt &LHS, const APInt &RHS, APInt &Quotient,
949 static void sdivrem(const APInt &LHS, const APInt &RHS, APInt &Quotient,
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/llvm/include/llvm/ADT/
APInt.h 180 unsigned rhsWords, APInt *Quotient, APInt *Remainder);
942 /// quotient and remainder. This function does both operations in the same
946 static void udivrem(const APInt &LHS, const APInt &RHS, APInt &Quotient,
949 static void sdivrem(const APInt &LHS, const APInt &RHS, APInt &Quotient,
    [all...]
  /prebuilts/clang/host/linux-x86/clang-3957855/prebuilt_include/llvm/include/llvm/ADT/
APInt.h 180 unsigned rhsWords, APInt *Quotient, APInt *Remainder);
942 /// quotient and remainder. This function does both operations in the same
946 static void udivrem(const APInt &LHS, const APInt &RHS, APInt &Quotient,
949 static void sdivrem(const APInt &LHS, const APInt &RHS, APInt &Quotient,
    [all...]
  /prebuilts/clang/host/linux-x86/clang-3960126/prebuilt_include/llvm/include/llvm/ADT/
APInt.h 180 unsigned rhsWords, APInt *Quotient, APInt *Remainder);
942 /// quotient and remainder. This function does both operations in the same
946 static void udivrem(const APInt &LHS, const APInt &RHS, APInt &Quotient,
949 static void sdivrem(const APInt &LHS, const APInt &RHS, APInt &Quotient,
    [all...]
  /prebuilts/clang/host/linux-x86/clang-3977809/prebuilt_include/llvm/include/llvm/ADT/
APInt.h 180 unsigned rhsWords, APInt *Quotient, APInt *Remainder);
942 /// quotient and remainder. This function does both operations in the same
946 static void udivrem(const APInt &LHS, const APInt &RHS, APInt &Quotient,
949 static void sdivrem(const APInt &LHS, const APInt &RHS, APInt &Quotient,
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4053586/prebuilt_include/llvm/include/llvm/ADT/
APInt.h 180 unsigned rhsWords, APInt *Quotient, APInt *Remainder);
942 /// quotient and remainder. This function does both operations in the same
946 static void udivrem(const APInt &LHS, const APInt &RHS, APInt &Quotient,
949 static void sdivrem(const APInt &LHS, const APInt &RHS, APInt &Quotient,
    [all...]
  /external/llvm/lib/Analysis/
ScalarEvolution.cpp 697 // Computes the Quotient and Remainder of the division of Numerator by
700 const SCEV *Denominator, const SCEV **Quotient,
709 *Quotient = D.One;
715 *Quotient = D.Zero;
720 // A simple case when N/1. The quotient is N.
722 *Quotient = Numerator;
730 *Quotient = Numerator;
732 divide(SE, *Quotient, Op, &Q, &R);
733 *Quotient = Q;
738 *Quotient = D.Zero
    [all...]
  /prebuilts/go/darwin-x86/src/net/rpc/
server.go 64 type Quotient struct {
75 func (t *Arith) Divide(args *Args, quo *Quotient) error {
117 quotient := new(Quotient)
118 divCall := client.Go("Arith.Divide", args, quotient, nil)
  /prebuilts/go/linux-x86/src/net/rpc/
server.go 64 type Quotient struct {
75 func (t *Arith) Divide(args *Args, quo *Quotient) error {
117 quotient := new(Quotient)
118 divCall := client.Go("Arith.Divide", args, quotient, nil)
  /external/llvm/lib/Target/AMDGPU/
AMDGPUISelLowering.cpp     [all...]

Completed in 1158 milliseconds

1 2