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

12345

/external/tensorflow/tensorflow/contrib/lite/toco/
H A Dallocate_transient_arrays.h33 // Rounds up dividend to a value divisible by divisor.
34 inline std::size_t RoundUpToNextMultipleOf(std::size_t dividend, argument
36 return ((dividend + divisor - 1) / divisor) * divisor;
/external/protobuf/src/google/protobuf/stubs/
H A Dint128.cc82 void uint128::DivModImpl(uint128 dividend, uint128 divisor, argument
85 GOOGLE_LOG(FATAL) << "Division or mod by zero: dividend.hi=" << dividend.hi_
86 << ", lo=" << dividend.lo_;
89 if (divisor > dividend) {
91 *remainder_ret = dividend;
95 if (divisor == dividend) {
105 // Left aligns the MSB of the denominator and the dividend.
106 int shift = Fls128(dividend) - Fls128(denominator);
110 // Uses shift-subtract algorithm to divide dividend b
[all...]
/external/guava/guava/src/com/google/common/primitives/
H A DUnsignedLongs.java175 * Returns dividend / divisor, where the dividend and divisor are treated as unsigned 64-bit
178 * @param dividend the dividend (numerator)
182 public static long divide(long dividend, long divisor) { argument
184 if (compare(dividend, divisor) < 0) {
185 return 0; // dividend < divisor
187 return 1; // dividend >= divisor
191 // Optimization - use signed division if dividend < 2^63
192 if (dividend >
216 remainder(long dividend, long divisor) argument
[all...]
H A DUnsignedInts.java173 * Returns dividend / divisor, where the dividend and divisor are treated as unsigned 32-bit
176 * @param dividend the dividend (numerator)
180 public static int divide(int dividend, int divisor) { argument
181 return (int) (toLong(dividend) / toLong(divisor));
185 * Returns dividend % divisor, where the dividend and divisor are treated as unsigned 32-bit
188 * @param dividend the dividend (numerato
192 remainder(int dividend, int divisor) argument
[all...]
/external/avb/libavb/
H A Davb_sysdeps_posix.c80 uint32_t avb_div_by_10(uint64_t* dividend) { argument
81 uint32_t rem = (uint32_t)(*dividend % 10);
82 *dividend /= 10;
H A Davb_sysdeps.h114 /* Divide the |dividend| by 10 and saves back to the pointer. Return the
116 uint32_t avb_div_by_10(uint64_t* dividend);
/external/avb/test/
H A Davb_sysdeps_posix_testing.cc102 uint32_t avb_div_by_10(uint64_t* dividend) { argument
103 uint32_t rem = (uint32_t)(*dividend % 10);
104 *dividend /= 10;
/external/guava/guava-tests/benchmark/com/google/common/primitives/
H A DUnsignedLongsBenchmark.java122 // to the given dividend, so that we don't have half of our divisions being
123 // trivial because the divisor is bigger than the dividend.
126 private static long randomDivisor(long dividend) { argument
128 if (dividend == -1) {
131 return UnsignedLongs.remainder(r, dividend + 1);
/external/compiler-rt/test/builtins/Unit/
H A Dmuldc3_test.c55 double _Complex dividend; local
58 __real__ dividend = a; local
59 __imag__ dividend = b; local
63 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))
H A Ddivdc3_test.c55 double _Complex dividend; local
58 __real__ dividend = a; local
59 __imag__ dividend = b; local
63 switch (classify(dividend))
H A Ddivsc3_test.c55 float _Complex dividend; local
58 __real__ dividend = a; local
59 __imag__ dividend = b; local
63 switch (classify(dividend))
H A Ddivtc3_test.c57 long double _Complex dividend; local
60 __real__ dividend = a; local
61 __imag__ dividend = b; local
65 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 Dmulsc3_test.c55 float _Complex dividend; local
58 __real__ dividend = a; local
59 __imag__ dividend = b; local
63 switch (classify(dividend))
H A Dmultc3_test.c58 long double _Complex dividend; local
61 __real__ dividend = a; local
62 __imag__ dividend = b; local
66 switch (classify(dividend))
/external/icu/icu4c/source/i18n/
H A Dgregoimp.cpp43 double ClockMath::floorDivide(double dividend, double divisor, argument
47 double quotient = floorDivide(dividend, divisor);
48 remainder = dividend - (quotient * divisor);
70 remainder = dividend - (quotient * divisor);
/external/tensorflow/tensorflow/compiler/xla/tests/
H A Dscalar_computations_test.cc269 int32 dividend; member in struct:xla::__anon25783::DivS32Params
276 *os << "{" << p.dividend << ", " << p.divisor << ", " << p.quotient << ", "
286 builder.Div(builder.ConstantR0<int32>(p.dividend),
295 builder.Rem(builder.ConstantR0<int32>(p.dividend),
304 ComputationDataHandle dividend; local
307 CreateR0Parameter<int32>(p.dividend, 0, "dividend", &builder, &dividend);
310 builder.Div(dividend, divisor);
319 ComputationDataHandle dividend; local
371 ComputationDataHandle dividend = local
412 ComputationDataHandle dividend = local
[all...]
/external/v8/src/
H A Dfixed-dtoa.cc321 uint64_t dividend = significand; local
335 dividend <<= exponent - divisor_power;
336 quotient = static_cast<uint32_t>(dividend / divisor);
337 remainder = (dividend % divisor) << divisor_power;
340 quotient = static_cast<uint32_t>(dividend / divisor);
341 remainder = (dividend % divisor) << exponent;
/external/guava/guava-tests/test/com/google/common/primitives/
H A DUnsignedIntsTest.java150 int dividend = r.nextInt();
153 assertTrue(dividend
154 - (divisor * UnsignedInts.divide(dividend, divisor) + UnsignedInts.remainder(dividend,
H A DUnsignedLongsTest.java138 long dividend = r.nextLong();
142 dividend - (divisor * UnsignedLongs.divide(dividend, divisor)
143 + UnsignedLongs.remainder(dividend, divisor)));
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
H A DSimpleBigDecimal.java123 BigInteger dividend = bigInt.shiftLeft(scale);
124 return new SimpleBigDecimal(dividend.divide(b.bigInt), scale);
/external/v8/src/compiler/
H A Dmachine-operator-reducer.h56 Node* Int32Div(Node* dividend, int32_t divisor);
57 Node* Uint32Div(Node* dividend, uint32_t divisor);
/external/v8/src/crankshaft/arm64/
H A Dlithium-codegen-arm64.cc2498 Register dividend = ToRegister32(instr->dividend()); local
2502 DCHECK(!result.is(dividend));
2507 DeoptimizeIfZero(dividend, instr, DeoptimizeReason::kDivisionByZero);
2511 // Test dividend for kMinInt by subtracting one (cmp) and checking for
2513 __ Cmp(dividend, 1);
2520 __ Tst(dividend, mask);
2525 __ Neg(result, dividend);
2530 __ Mov(result, dividend);
2532 __ Add(result, dividend, Operan
2543 Register dividend = ToRegister32(instr->dividend()); local
2576 Register dividend = ToRegister32(instr->dividend()); local
3500 Register dividend = ToRegister32(instr->dividend()); local
3544 Register dividend = ToRegister32(instr->dividend()); local
3590 Register dividend = ToRegister32(instr->dividend()); local
3844 Register dividend = ToRegister32(instr->dividend()); local
3876 Register dividend = ToRegister32(instr->dividend()); local
3904 Register dividend = ToRegister32(instr->left()); local
[all...]
/external/v8/src/builtins/
H A Dbuiltins-number.cc1218 Node* dividend = var_dividend.value(); local
1222 Branch(TaggedIsSmi(dividend), &dividend_is_smi, &dividend_is_not_smi);
1236 // Do floating point division {dividend} is zero and {divisor} is
1239 Branch(SmiEqual(dividend, SmiConstant(0)), &dividend_is_zero,
1250 Node* untagged_dividend = SmiToWord32(dividend);
1252 // Do floating point division if {dividend} is kMinInt (or kMinInt - 1
1278 // Bailout: convert {dividend} and {divisor} to double and do double
1282 var_dividend_float64.Bind(SmiToFloat64(dividend));
1300 // Convert {dividend} to a double and divide it with the value of
1302 var_dividend_float64.Bind(SmiToFloat64(dividend));
1415 Node* dividend = var_dividend.value(); local
[all...]

Completed in 357 milliseconds

12345