Home
last modified time | relevance | path

Searched refs:dividend (Results 1 – 25 of 40) sorted by relevance

12

/external/kernel-headers/original/linux/
Dcalc64.h17 #define div_long_long_rem(dividend, divisor, remainder) \ argument
18 do_div_llr((dividend), divisor, remainder)
20 static inline unsigned long do_div_llr(const long long dividend, in do_div_llr() argument
23 u64 result = dividend; in do_div_llr()
35 static inline long div_long_long_rem_signed(const long long dividend, in div_long_long_rem_signed() argument
40 if (unlikely(dividend < 0)) { in div_long_long_rem_signed()
41 res = -div_long_long_rem(-dividend, divisor, remainder); in div_long_long_rem_signed()
44 res = div_long_long_rem(dividend, divisor, remainder); in div_long_long_rem_signed()
/external/guava/guava/src/com/google/common/primitives/
DUnsignedLongs.java178 public static long divide(long dividend, long divisor) { in divide() argument
180 if (compare(dividend, divisor) < 0) { in divide()
188 if (dividend >= 0) { in divide()
189 return dividend / divisor; in divide()
198 long quotient = ((dividend >>> 1) / divisor) << 1; in divide()
199 long rem = dividend - quotient * divisor; in divide()
212 public static long remainder(long dividend, long divisor) { in remainder() argument
214 if (compare(dividend, divisor) < 0) { in remainder()
215 return dividend; // dividend < divisor in remainder()
217 return dividend - divisor; // dividend >= divisor in remainder()
[all …]
DUnsignedInts.java176 public static int divide(int dividend, int divisor) { in divide() argument
177 return (int) (toLong(dividend) / toLong(divisor)); in divide()
188 public static int remainder(int dividend, int divisor) { in remainder() argument
189 return (int) (toLong(dividend) % toLong(divisor)); in remainder()
/external/llvm/test/CodeGen/X86/
Ddiv8.ll6 define signext i8 @test_div(i8 %dividend, i8 %divisor) nounwind ssp {
8 %dividend.addr = alloca i8, align 2
11 store i8 %dividend, i8* %dividend.addr, align 2
13 %tmp = load i8* %dividend.addr, align 2
/external/v8/test/mjsunit/
Ddiv-mod.js95 function compute_mod(dividend, divisor) { argument
98 if (isNaN(dividend) || isNaN(divisor) || divisor == 0) { return NaN; }
100 if (dividend < 0) { dividend = -dividend; sign = -1; }
101 if (dividend == Infinity) { return NaN; }
103 if (divisor == Infinity) { return sign * dividend; }
112 return sign * rec_mod(dividend, divisor);
/external/guava/guava-tests/test/com/google/common/primitives/
DUnsignedIntsTest.java92 int dividend = r.nextInt(); in testDivideRemainderEuclideanProperty() local
95 assertTrue(dividend in testDivideRemainderEuclideanProperty()
96 - (divisor * UnsignedInts.divide(dividend, divisor) + UnsignedInts.remainder(dividend, in testDivideRemainderEuclideanProperty()
DUnsignedLongsTest.java84 long dividend = r.nextLong(); in testDivideRemainderEuclideanProperty() local
87 assertTrue(dividend - (divisor * UnsignedLongs.divide(dividend, divisor) in testDivideRemainderEuclideanProperty()
88 + UnsignedLongs.remainder(dividend, divisor)) == 0); in testDivideRemainderEuclideanProperty()
/external/compiler-rt/test/Unit/
Ddivdc3_test.c54 double _Complex dividend; in test__divdc3() local
57 __real__ dividend = a; in test__divdc3() local
58 __imag__ dividend = b; in test__divdc3() local
62 switch (classify(dividend)) in test__divdc3()
Ddivxc3_test.c57 long double _Complex dividend; in test__divxc3() local
60 __real__ dividend = a; in test__divxc3() local
61 __imag__ dividend = b; in test__divxc3() local
65 switch (classify(dividend)) in test__divxc3()
Ddivsc3_test.c54 float _Complex dividend; in test__divsc3() local
57 __real__ dividend = a; in test__divsc3() local
58 __imag__ dividend = b; in test__divsc3() local
62 switch (classify(dividend)) in test__divsc3()
Dmulsc3_test.c54 float _Complex dividend; in test__mulsc3() local
57 __real__ dividend = a; in test__mulsc3() local
58 __imag__ dividend = b; in test__mulsc3() local
62 switch (classify(dividend)) in test__mulsc3()
Dmultc3_test.c57 long double _Complex dividend; in test__multc3() local
60 __real__ dividend = a; in test__multc3() local
61 __imag__ dividend = b; in test__multc3() local
65 switch (classify(dividend)) in test__multc3()
Ddivtc3_test.c58 long double _Complex dividend; in test__divtc3() local
61 __real__ dividend = a; in test__divtc3() local
62 __imag__ dividend = b; in test__divtc3() local
66 switch (classify(dividend)) in test__divtc3()
Dmulxc3_test.c57 long double _Complex dividend; in test__mulxc3() local
60 __real__ dividend = a; in test__mulxc3() local
61 __imag__ dividend = b; in test__mulxc3() local
65 switch (classify(dividend)) in test__mulxc3()
Dmuldc3_test.c54 double _Complex dividend; in test__muldc3() local
57 __real__ dividend = a; in test__muldc3() local
58 __imag__ dividend = b; in test__muldc3() local
62 switch (classify(dividend)) in test__muldc3()
/external/v8/src/
Dfixed-dtoa.cc343 uint64_t dividend = significand; in FastFixedDtoa() local
357 dividend <<= exponent - divisor_power; in FastFixedDtoa()
358 quotient = static_cast<uint32_t>(dividend / divisor); in FastFixedDtoa()
359 remainder = (dividend % divisor) << divisor_power; in FastFixedDtoa()
362 quotient = static_cast<uint32_t>(dividend / divisor); in FastFixedDtoa()
363 remainder = (dividend % divisor) << exponent; in FastFixedDtoa()
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
DSets.java982 int dividend = 1;
986 Axis axis = new Axis(set, dividend);
988 dividend = IntMath.checkedMultiply(dividend, axis.size());
994 size = dividend;
1071 final int dividend;
1073 Axis(Set<? extends B> set, int dividend) {
1076 this.dividend = dividend;
1084 return choicesList.get(index / dividend % size());
/external/guava/guava/src/com/google/common/collect/
DSets.java994 int dividend = 1;
998 Axis axis = new Axis(set, dividend);
1000 dividend = IntMath.checkedMultiply(dividend, axis.size());
1006 size = dividend;
1083 final int dividend;
1085 Axis(Set<? extends B> set, int dividend) {
1088 this.dividend = dividend;
1096 return choicesList.get(index / dividend % size());
/external/icu4c/i18n/
Dgregoimp.cpp40 double ClockMath::floorDivide(double dividend, double divisor, in floorDivide() argument
44 double quotient = floorDivide(dividend, divisor); in floorDivide()
45 remainder = dividend - (quotient * divisor); in floorDivide()
67 remainder = dividend - (quotient * divisor); in floorDivide()
Dgregoimp.h80 static double floorDivide(double dividend, double divisor,
/external/bouncycastle/src/main/java/org/bouncycastle/math/ec/
DSimpleBigDecimal.java129 BigInteger dividend = bigInt.shiftLeft(scale); in divide() local
130 return new SimpleBigDecimal(dividend.divide(b.bigInt), scale); in divide()
/external/kernel-headers/original/asm-x86/
Ddiv64.h53 extern uint64_t div64_64(uint64_t dividend, uint64_t divisor);
/external/llvm/lib/Support/
DAPFloat.cpp970 integerPart *lhsSignificand, *dividend, *divisor; in divideSignificand() local
981 dividend = new integerPart[partsCount * 2]; in divideSignificand()
983 dividend = scratch; in divideSignificand()
985 divisor = dividend + partsCount; in divideSignificand()
989 dividend[i] = lhsSignificand[i]; in divideSignificand()
1006 bit = precision - APInt::tcMSB(dividend, partsCount) - 1; in divideSignificand()
1009 APInt::tcShiftLeft(dividend, partsCount, bit); in divideSignificand()
1015 if (APInt::tcCompare(dividend, divisor, partsCount) < 0) { in divideSignificand()
1017 APInt::tcShiftLeft(dividend, partsCount, 1); in divideSignificand()
1018 assert(APInt::tcCompare(dividend, divisor, partsCount) >= 0); in divideSignificand()
[all …]
/external/v8/src/arm/
Dlithium-codegen-arm.cc902 Register dividend = ToRegister(instr->InputAt(0)); in DoModI() local
911 __ cmp(dividend, Operand(0)); in DoModI()
913 __ rsb(result, dividend, Operand(0)); in DoModI()
921 __ and_(result, dividend, Operand(divisor - 1)); in DoModI()
933 DwVfpRegister dividend = ToDoubleRegister(instr->TempAt(1)); in DoModI() local
937 ASSERT(!dividend.is(divisor)); in DoModI()
938 ASSERT(!dividend.is(quotient)); in DoModI()
998 __ vmov(dividend.low(), left); in DoModI()
1003 __ vcvt_f64_s32(dividend, dividend.low()); in DoModI()
1009 __ vdiv(quotient, dividend, divisor); in DoModI()
[all …]
/external/oprofile/libpp/
Dformat_output.cpp66 string get_percent(count_type dividend, count_type divisor) in get_percent() argument
68 double ratio = op_ratio(dividend, divisor); in get_percent()

12