Searched defs:dividend (Results 1 - 25 of 25) sorted by relevance

/external/kernel-headers/original/linux/
H A Dcalc64.h11 * The 64bit dividend is divided by the divisor (data type long), the
14 * do_div macro the dividend is kept intact.
17 #define div_long_long_rem(dividend, divisor, remainder) \
18 do_div_llr((dividend), divisor, remainder)
20 static inline unsigned long do_div_llr(const long long dividend, argument
23 u64 result = dividend;
32 * negative dividend leads to an divide overflow exception, which
35 static inline long div_long_long_rem_signed(const long long dividend, argument
40 if (unlikely(dividend < 0)) {
41 res = -div_long_long_rem(-dividend, diviso
[all...]
/external/compiler-rt/test/Unit/
H A Ddivdc3_test.c54 double _Complex dividend; local
57 __real__ dividend = a; local
58 __imag__ dividend = b; local
62 switch (classify(dividend))
H A Ddivsc3_test.c54 float _Complex dividend; local
57 __real__ dividend = a; local
58 __imag__ dividend = b; local
62 switch (classify(dividend))
H A Ddivtc3_test.c58 long double _Complex dividend; local
61 __real__ dividend = a; local
62 __imag__ dividend = b; local
66 switch (classify(dividend))
H A Ddivxc3_test.c57 long double _Complex dividend; local
60 __real__ dividend = a; local
61 __imag__ dividend = b; local
65 switch (classify(dividend))
H A Dmuldc3_test.c54 double _Complex dividend; local
57 __real__ dividend = a; local
58 __imag__ dividend = b; local
62 switch (classify(dividend))
H A Dmulsc3_test.c54 float _Complex dividend; local
57 __real__ dividend = a; local
58 __imag__ dividend = b; local
62 switch (classify(dividend))
H A Dmultc3_test.c57 long double _Complex dividend; local
60 __real__ dividend = a; local
61 __imag__ dividend = b; local
65 switch (classify(dividend))
H A Dmulxc3_test.c57 long double _Complex dividend; local
60 __real__ dividend = a; local
61 __imag__ dividend = b; local
65 switch (classify(dividend))
/external/guava/guava/src/com/google/common/primitives/
H A DUnsignedInts.java169 * Returns dividend / divisor, where the dividend and divisor are treated as unsigned 32-bit
172 * @param dividend the dividend (numerator)
176 public static int divide(int dividend, int divisor) { argument
177 return (int) (toLong(dividend) / toLong(divisor));
181 * Returns dividend % divisor, where the dividend and divisor are treated as unsigned 32-bit
184 * @param dividend the dividend (numerato
188 remainder(int dividend, int divisor) argument
[all...]
H A DUnsignedLongs.java171 * Returns dividend / divisor, where the dividend and divisor are treated as unsigned 64-bit
174 * @param dividend the dividend (numerator)
178 public static long divide(long dividend, long divisor) { argument
180 if (compare(dividend, divisor) < 0) {
181 return 0; // dividend < divisor
183 return 1; // dividend >= divisor
187 // Optimization - use signed division if dividend < 2^63
188 if (dividend >
212 remainder(long dividend, long divisor) argument
[all...]
/external/icu4c/i18n/
H A Dgregoimp.cpp40 double ClockMath::floorDivide(double dividend, double divisor, argument
44 double quotient = floorDivide(dividend, divisor);
45 remainder = dividend - (quotient * divisor);
67 remainder = dividend - (quotient * divisor);
/external/v8/src/
H A Dfixed-dtoa.cc343 uint64_t dividend = significand; local
357 dividend <<= exponent - divisor_power;
358 quotient = static_cast<uint32_t>(dividend / divisor);
359 remainder = (dividend % divisor) << divisor_power;
362 quotient = static_cast<uint32_t>(dividend / divisor);
363 remainder = (dividend % divisor) << exponent;
H A Dhydrogen-instructions.cc2134 int32_t dividend = c_left->Integer32Value(); local
2137 int32_t res = dividend % divisor;
2138 if ((res == 0) && (dividend < 0)) {
/external/guava/guava/src/com/google/common/collect/
H A 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; field in class:Sets.CartesianSet.Axis
1085 Axis(Set<? extends B> set, int dividend) { argument
1088 this.dividend = dividend;
1096 return choicesList.get(index / dividend
[all...]
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
H A 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; field in class:Sets.CartesianSet.Axis
1073 Axis(Set<? extends B> set, int dividend) { argument
1076 this.dividend = dividend;
1084 return choicesList.get(index / dividend
[all...]
/external/oprofile/libpp/
H A Dformat_output.cpp66 string get_percent(count_type dividend, count_type divisor) argument
68 double ratio = op_ratio(dividend, divisor);
/external/v8/src/arm/
H A Dlithium-arm.cc1312 LOperand* dividend = UseFixed(instr->left(), r0); local
1315 DefineFixed(new(zone()) LDivI(dividend, divisor), r0)));
1333 LOperand* dividend = UseRegister(instr->left()); local
1335 mod = new(zone()) LModI(dividend,
H A Dlithium-codegen-arm.cc902 Register dividend = ToRegister(instr->InputAt(0)); local
911 __ cmp(dividend, Operand(0));
913 __ rsb(result, dividend, Operand(0));
921 __ and_(result, dividend, Operand(divisor - 1));
933 DwVfpRegister dividend = ToDoubleRegister(instr->TempAt(1)); local
937 ASSERT(!dividend.is(divisor));
938 ASSERT(!dividend.is(quotient));
998 __ vmov(dividend.low(), left);
1003 __ vcvt_f64_s32(dividend, dividend
[all...]
/external/v8/src/ia32/
H A Dlithium-ia32.cc1346 LOperand* dividend = UseFixed(instr->left(), eax); local
1348 LDivI* result = new(zone()) LDivI(dividend, divisor, temp);
H A Dlithium-codegen-ia32.cc810 Register dividend = ToRegister(instr->InputAt(0)); local
818 __ test(dividend, Operand(dividend));
820 __ neg(dividend);
821 __ and_(dividend, divisor - 1);
822 __ neg(dividend);
830 __ and_(dividend, divisor - 1);
859 // If the dividend is smaller than the nonnegative
860 // divisor, the dividend is the result.
875 // Try a few subtractions of the dividend
[all...]
/external/v8/src/mips/
H A Dlithium-mips.cc1313 LOperand* dividend = UseFixed(instr->left(), a0); local
1316 DefineFixed(new(zone()) LDivI(dividend, divisor), v0)));
1334 LOperand* dividend = UseRegister(instr->left()); local
1336 mod = new(zone()) LModI(dividend,
/external/v8/src/x64/
H A Dlithium-x64.cc1301 LOperand* dividend = UseFixed(instr->left(), rax); local
1303 LDivI* result = new(zone()) LDivI(dividend, divisor, temp);
H A Dlithium-codegen-x64.cc774 Register dividend = ToRegister(instr->InputAt(0)); local
782 __ testl(dividend, dividend);
784 __ negl(dividend);
785 __ andl(dividend, Immediate(divisor - 1));
786 __ negl(dividend);
794 __ andl(dividend, Immediate(divisor - 1));
823 // If the dividend is smaller than the nonnegative
824 // divisor, the dividend is the result.
839 // Try a few subtractions of the dividend
[all...]
/external/valgrind/main/VEX/priv/
H A Dguest_ppc_toIR.c1973 * then OV <- 1. If dest reg is 0 AND both dividend and divisor are non-zero,
2095 * both dividend and divisor are non-zero, it implies an overflow.
3198 IRExpr* dividend = mk64lo32Sto64( mkexpr(rA) ); local
3200 assign( rD, mk64lo32Uto64( binop(Iop_DivS64, dividend,
3204 mkexpr(rD), dividend, divisor );
3229 IRExpr* dividend = mk64lo32Uto64( mkexpr(rA) ); local
3231 assign( rD, mk64lo32Uto64( binop(Iop_DivU64, dividend,
3235 mkexpr(rD), dividend, divisor );
3513 IRExpr * dividend, * divisor; local
3518 dividend
3548 IRExpr * dividend, * divisor; local
[all...]

Completed in 801 milliseconds