Home
last modified time | relevance | path

Searched refs:quotient (Results 1 – 25 of 94) sorted by relevance

1234

/third_party/skia/third_party/externals/icu/source/i18n/
Dgregoimp.cpp37 double quotient; in floorDivide() local
38 quotient = uprv_floor(numerator / denominator); in floorDivide()
39 remainder = (int32_t) (numerator - (quotient * denominator)); in floorDivide()
40 return (int32_t) quotient; in floorDivide()
47 double quotient = floorDivide(dividend, divisor); in floorDivide() local
48 remainder = dividend - (quotient * divisor); in floorDivide()
56 double q = quotient; in floorDivide()
57 quotient += (remainder < 0) ? -1 : +1; in floorDivide()
58 if (q == quotient) { in floorDivide()
70 remainder = dividend - (quotient * divisor); in floorDivide()
[all …]
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Dgregoimp.cpp37 double quotient; in floorDivide() local
38 quotient = uprv_floor(numerator / denominator); in floorDivide()
39 remainder = (int32_t) (numerator - (quotient * denominator)); in floorDivide()
40 return (int32_t) quotient; in floorDivide()
47 double quotient = floorDivide(dividend, divisor); in floorDivide() local
48 remainder = dividend - (quotient * divisor); in floorDivide()
56 double q = quotient; in floorDivide()
57 quotient += (remainder < 0) ? -1 : +1; in floorDivide()
58 if (q == quotient) { in floorDivide()
70 remainder = dividend - (quotient * divisor); in floorDivide()
[all …]
/third_party/icu/icu4c/source/i18n/
Dgregoimp.cpp37 double quotient; in floorDivide() local
38 quotient = uprv_floor(numerator / denominator); in floorDivide()
39 remainder = (int32_t) (numerator - (quotient * denominator)); in floorDivide()
40 return (int32_t) quotient; in floorDivide()
47 double quotient = floorDivide(dividend, divisor); in floorDivide() local
48 remainder = dividend - (quotient * divisor); in floorDivide()
56 double q = quotient; in floorDivide()
57 quotient += (remainder < 0) ? -1 : +1; in floorDivide()
58 if (q == quotient) { in floorDivide()
70 remainder = dividend - (quotient * divisor); in floorDivide()
[all …]
/third_party/node/deps/icu-small/source/i18n/
Dgregoimp.cpp37 double quotient; in floorDivide() local
38 quotient = uprv_floor(numerator / denominator); in floorDivide()
39 remainder = (int32_t) (numerator - (quotient * denominator)); in floorDivide()
40 return (int32_t) quotient; in floorDivide()
47 double quotient = floorDivide(dividend, divisor); in floorDivide() local
48 remainder = dividend - (quotient * divisor); in floorDivide()
56 double q = quotient; in floorDivide()
57 quotient += (remainder < 0) ? -1 : +1; in floorDivide()
58 if (q == quotient) { in floorDivide()
70 remainder = dividend - (quotient * divisor); in floorDivide()
[all …]
/third_party/protobuf/src/google/protobuf/stubs/
Dint128.cc96 uint128 quotient = 0; in DivModImpl() local
98 quotient <<= 1; in DivModImpl()
102 quotient += 1; in DivModImpl()
107 *quotient_ret = quotient; in DivModImpl()
114 uint128 quotient = 0; in operator /=() local
116 DivModImpl(*this, divisor, &quotient, &remainder); in operator /=()
117 *this = quotient; in operator /=()
121 uint128 quotient = 0; in operator %=() local
123 DivModImpl(*this, divisor, &quotient, &remainder); in operator %=()
/third_party/skia/third_party/externals/abseil-cpp/absl/numeric/
Dint128.cc73 uint128 quotient = 0; in DivModImpl() local
82 quotient <<= 1; in DivModImpl()
85 quotient |= 1; in DivModImpl()
90 *quotient_ret = quotient; in DivModImpl()
143 uint128 quotient = 0; in operator /() local
145 DivModImpl(lhs, rhs, &quotient, &remainder); in operator /()
146 return quotient; in operator /()
150 uint128 quotient = 0; in operator %() local
152 DivModImpl(lhs, rhs, &quotient, &remainder); in operator %()
265 uint128 quotient = 0; in operator /() local
[all …]
/third_party/abseil-cpp/absl/numeric/
Dint128.cc73 uint128 quotient = 0; in DivModImpl() local
82 quotient <<= 1; in DivModImpl()
85 quotient |= 1; in DivModImpl()
90 *quotient_ret = quotient; in DivModImpl()
146 uint128 quotient = 0; in operator /()
148 DivModImpl(lhs, rhs, &quotient, &remainder); in operator /()
149 return quotient; in operator /()
157 uint128 quotient = 0; in operator %()
159 DivModImpl(lhs, rhs, &quotient, &remainder); in operator %()
272 uint128 quotient = 0; in operator /() local
[all …]
/third_party/mesa3d/src/util/
Dfast_idiv_by_const.c87 uint64_t quotient = initial_power_of_2 / D; in util_compute_fast_udiv_info() local
115 quotient = quotient * 2 + 1; in util_compute_fast_udiv_info()
119 quotient = quotient * 2; in util_compute_fast_udiv_info()
137 down_multiplier = quotient; in util_compute_fast_udiv_info()
144 result.multiplier = quotient + 1; in util_compute_fast_udiv_info()
/third_party/cmsis/CMSIS/DSP/Source/FastMathFunctions/
Darm_divide_q15.c62 q15_t *quotient, in arm_divide_q15() argument
77 *quotient = 0x8000; in arm_divide_q15()
81 *quotient = 0x7FFF; in arm_divide_q15()
103 *quotient=temp; in arm_divide_q15()
/third_party/boost/boost/random/detail/
Dlarge_arithmetic.hpp28 boost::uintmax_t quotient; member
64 digit_t quotient[2]; in muldivmod() local
97 quotient[i - 2] = q; in muldivmod()
104 ((::boost::uintmax_t(quotient[1]) << bits) | quotient[0]), in muldivmod()
111 { return detail::muldivmod(a, b, m).quotient; } in muldiv()
/third_party/grpc/src/php/tests/generated_code/Math/
DDivReply.php19 protected $quotient = 0; variable in Math\\DivReply
46 return $this->quotient;
57 $this->quotient = $var;
/third_party/protobuf/js/binary/
Darith.js235 var quotient = new jspb.arith.UInt64(0, 0);
251 quotient = quotient.add(unit);
259 return [quotient, remainder];
273 var quotient = divResult[0], remainder = divResult[1];
275 num = quotient;
/third_party/mesa3d/src/compiler/nir/
Dnir_lower_idiv.c135 nir_ssa_def *quotient = nir_umul_high(bld, numer, rcp); in emit_udiv() local
136 nir_ssa_def *num_s_remainder = nir_imul(bld, quotient, denom); in emit_udiv()
142 quotient = nir_bcsel(bld, remainder_ge_den, in emit_udiv()
143 nir_iadd_imm(bld, quotient, 1), quotient); in emit_udiv()
154 return nir_bcsel(bld, remainder_ge_den, nir_iadd_imm(bld, quotient, 1), in emit_udiv()
155 quotient); in emit_udiv()
/third_party/boost/libs/signals2/example/
Dcustom_combiners.cpp17 float quotient(float x, float y) { return x / y; } in quotient() function
53 sig.connect(&quotient); in maximum_combiner_example()
92 sig.connect(&quotient); in aggregate_values_example()
Dsignal_return_value.cpp17 float quotient(float x, float y) { return x / y; } in quotient() function
28 sig.connect(&quotient); in main()
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
DGrego.java198 long quotient = ((numerator + 1) / denominator) - 1; in floorDivide() local
199 remainder[0] = numerator - (quotient * denominator); in floorDivide()
200 return quotient; in floorDivide()
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DGrego.java196 long quotient = ((numerator + 1) / denominator) - 1; in floorDivide() local
197 remainder[0] = numerator - (quotient * denominator); in floorDivide()
198 return quotient; in floorDivide()
/third_party/openssl/test/
Dbntests.pl68 my $quotient = bn($s{'Quotient'});
74 $b->bmul($quotient);
88 return if $rempassed && $quotient == $a;
/third_party/bounds_checking_function/src/
Doutput.inl244 SecUnsignedInt32 quotient; local
248 quotient = (val32 >> 1U) + (val32 >> 2U); /* Fast div magic 2 */
249 quotient = quotient + (quotient >> 4U); /* Fast div magic 4 */
250 quotient = quotient + (quotient >> 8U); /* Fast div magic 8 */
251 quotient = quotient + (quotient >> 16U); /* Fast div magic 16 */
252 quotient = quotient >> 3U; /* Fast div magic 3 */
253 remain = val32 - SECUREC_MUL_TEN(quotient);
254 val32 = (remain > 9U) ? (quotient + 1U) : quotient; /* Fast div magic 9 */
293 * Calculation divisor multiply 0xcccccccccccccccdULL, resultHi64 >> 3 as quotient
295 SECUREC_INLINE void SecU64Div10(SecUnsignedInt64 divisor, SecUnsignedInt64 *quotient, SecUnsignedIn… argument
[all …]
/third_party/icu/vendor/double-conversion/upstream/double-conversion/
Dfixed-dtoa.cc342 uint32_t quotient; in FastFixedDtoa() local
356 quotient = static_cast<uint32_t>(dividend / divisor); in FastFixedDtoa()
360 quotient = static_cast<uint32_t>(dividend / divisor); in FastFixedDtoa()
363 FillDigits32(quotient, buffer, length); in FastFixedDtoa()
/third_party/grpc/src/csharp/Grpc.Examples/
DMathServiceImpl.cs75 long quotient = args.Dividend / args.Divisor; in DivInternal()
77 return new DivReply { Quotient = quotient, Remainder = remainder }; in DivInternal()
/third_party/grpc/src/php/tests/generated_code/
Dmath_server.js47 quotient: Math.floor(dividend / divisor), property
100 quotient: Math.floor(dividend / divisor), property
/third_party/boost/libs/math/test/
Dtest_autodiff_1.cpp255 auto quotient = autodiff_fvar<T, m, n>(1); // unit constant in BOOST_AUTO_TEST_CASE_TEMPLATE() local
258 quotient /= x; in BOOST_AUTO_TEST_CASE_TEMPLATE()
259 BOOST_CHECK_EQUAL(quotient.derivative(0, 0), 1 / cx); in BOOST_AUTO_TEST_CASE_TEMPLATE()
260 BOOST_CHECK_EQUAL(quotient.derivative(1, 0), -1 / pow(cx, 2)); in BOOST_AUTO_TEST_CASE_TEMPLATE()
261 BOOST_CHECK_EQUAL(quotient.derivative(2, 0), 2 / pow(cx, 3)); in BOOST_AUTO_TEST_CASE_TEMPLATE()
262 BOOST_CHECK_EQUAL(quotient.derivative(3, 0), -6 / pow(cx, 4)); in BOOST_AUTO_TEST_CASE_TEMPLATE()
265 BOOST_CHECK_EQUAL(quotient.derivative(i, j), 0.0); in BOOST_AUTO_TEST_CASE_TEMPLATE()
270 quotient = 1; in BOOST_AUTO_TEST_CASE_TEMPLATE()
271 quotient /= cy; in BOOST_AUTO_TEST_CASE_TEMPLATE()
275 BOOST_CHECK_EQUAL(quotient.derivative(i, j), 1 / cy); in BOOST_AUTO_TEST_CASE_TEMPLATE()
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/cuda_impl/
Dutil.cuh482 unsigned int old, assumed, quotient, new_value; in MsAtomicDiv() local
487 quotient = ((char)__byte_perm(old, 0, ((size_t)address & 3) | 0x4440)) / val; // NOLINT in MsAtomicDiv()
488 new_value = __byte_perm(old, quotient, selector); in MsAtomicDiv()
500 unsigned int old, assumed, quotient, new_value; in MsAtomicDiv() local
505 quotient = ((unsigned char)__byte_perm(old, 0, ((size_t)address & 3) | 0x4440)) / val; in MsAtomicDiv()
506 new_value = __byte_perm(old, quotient, selector); in MsAtomicDiv()
/third_party/protobuf/js/compatibility_tests/v3.1.0/binary/
Darith_test.js275 var quotient = result[0];
277 assertEquals(quotient.lo, testData[i][3]);
278 assertEquals(quotient.hi, testData[i][4]);

1234