Home
last modified time | relevance | path

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

123

/third_party/musl/libc-test/src/functionalext/supplement/math/math_gtest/
Dmath_remquo_test.cpp39 int quotient; variable
40 double result = remquo(15.0, 6.0, &quotient);
41 EXPECT_EQ(2, quotient);
52 int quotient; variable
53 EXPECT_TRUE(isnan(remquo(nan(""), 15.0, &quotient)));
54 EXPECT_TRUE(isnan(remquo(11.0, nan(""), &quotient)));
64 int quotient; variable
65 EXPECT_TRUE(isnan(remquo(HUGE_VAL, 15.0, &quotient)));
66 EXPECT_TRUE(isnan(remquo(-HUGE_VAL, 11.0, &quotient)));
76 int quotient; variable
[all …]
/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/node/deps/icu-small/source/i18n/
Dgregoimp.cpp39 double quotient = uprv_floor(numerator / denominator); in floorDivide() local
45 *remainder = (int32_t) (uprv_floor(numerator) - (quotient * denominator)); in floorDivide()
47 return (int32_t) quotient; in floorDivide()
54 double quotient = floorDivide(dividend, divisor); in floorDivide() local
55 double r = dividend - (quotient * divisor); in floorDivide()
63 double q = quotient; in floorDivide()
64 quotient += (r < 0) ? -1 : +1; in floorDivide()
65 if (q == quotient) { in floorDivide()
77 r = dividend - (quotient * divisor); in floorDivide()
84 return quotient; in floorDivide()
/third_party/icu/icu4c/source/i18n/
Dgregoimp.cpp39 double quotient = uprv_floor(numerator / denominator); in floorDivide() local
44 *remainder = (int32_t) (uprv_floor(numerator) - (quotient * denominator)); in floorDivide()
45 return (int32_t) quotient; in floorDivide()
52 double quotient = floorDivide(dividend, divisor); in floorDivide() local
53 *remainder = dividend - (quotient * divisor); in floorDivide()
61 double q = quotient; in floorDivide()
62 quotient += (*remainder < 0) ? -1 : +1; in floorDivide()
63 if (q == quotient) { in floorDivide()
75 *remainder = dividend - (quotient * divisor); in floorDivide()
79 return quotient; in floorDivide()
/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/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()
Darm_divide_q31.c57 q31_t *quotient, in arm_divide_q31() argument
72 *quotient = 0x80000000; in arm_divide_q31()
76 *quotient = 0x7FFFFFFF; in arm_divide_q31()
98 *quotient=(q31_t)temp; in arm_divide_q31()
/third_party/node/deps/v8/src/bigint/
Ddigit-arithmetic.h126 digit_t quotient; in digit_div() local
130 : "=a"(quotient), "=d"(rem) in digit_div()
135 return quotient; in digit_div()
137 digit_t quotient; in digit_div() local
141 : "=a"(quotient), "=d"(rem) in digit_div()
146 return quotient; in digit_div()
/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;
Darith_test.js274 var quotient = result[0];
276 expect(quotient.lo).toEqual(testData[i][3]);
277 expect(quotient.hi).toEqual(testData[i][4]);
/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/cmsis/CMSIS/DSP/Source/TransformFunctions/
Darm_mfcc_q31.c101 q31_t quotient; in arm_mfcc_q31() local
104 status = arm_divide_q31(0x7FFFFFFF,m,&quotient,&shift); in arm_mfcc_q31()
110 arm_scale_q31(pSrc,quotient,shift,pSrc,S->fftLen); in arm_mfcc_q31()
Darm_mfcc_q15.c100 q15_t quotient; in arm_mfcc_q15() local
103 status = arm_divide_q15(0x7FFF,m,&quotient,&shift); in arm_mfcc_q15()
109 arm_scale_q15(pSrc,quotient,shift,pSrc,S->fftLen); in arm_mfcc_q15()
/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.inl256 SecUnsignedInt32 quotient; local
260 quotient = (val32 >> 1U) + (val32 >> 2U); /* Fast div magic 2 */
261 quotient = quotient + (quotient >> 4U); /* Fast div magic 4 */
262 quotient = quotient + (quotient >> 8U); /* Fast div magic 8 */
263 quotient = quotient + (quotient >> 16U); /* Fast div magic 16 */
264 quotient = quotient >> 3U; /* Fast div magic 3 */
265 remain = val32 - SECUREC_MUL_TEN(quotient);
266 val32 = (remain > 9U) ? (quotient + 1U) : quotient; /* Fast div magic 9 */
305 * Calculation divisor multiply 0xcccccccccccccccdULL, resultHi64 >> 3 as quotient
307 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/node/deps/v8/src/base/numbers/
Dfixed-dtoa.cc307 uint32_t quotient; in FastFixedDtoa() local
321 quotient = static_cast<uint32_t>(dividend / divisor); in FastFixedDtoa()
325 quotient = static_cast<uint32_t>(dividend / divisor); in FastFixedDtoa()
328 FillDigits32(quotient, buffer, length); in FastFixedDtoa()
/third_party/node/deps/v8/src/compiler/
Dmachine-operator-reducer.cc253 Node* quotient = graph()->NewNode(machine()->Int32MulHigh(), dividend, in Int32Div() local
256 quotient = Int32Add(quotient, dividend); in Int32Div()
258 quotient = Int32Sub(quotient, dividend); in Int32Div()
260 return Int32Add(Word32Sar(quotient, mag.shift), Word32Shr(dividend, 31)); in Int32Div()
273 Node* quotient = graph()->NewNode(machine()->Uint32MulHigh(), dividend, in Uint32Div() local
277 quotient = Word32Shr( in Uint32Div()
278 Int32Add(Word32Shr(Int32Sub(dividend, quotient), 1), quotient), in Uint32Div()
281 quotient = Word32Shr(quotient, mag.shift); in Uint32Div()
283 return quotient; in Uint32Div()
1141 Node* quotient = dividend; in ReduceInt32Div() local
[all …]
/third_party/protobuf/js/compatibility_tests/v3.0.0/binary/
Darith_test.js275 var quotient = result[0];
277 assertEquals(quotient.lo, testData[i][3]);
278 assertEquals(quotient.hi, testData[i][4]);
/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]);
/third_party/cmsis/CMSIS/DSP/Include/dsp/
Dfast_math_functions.h329 q15_t *quotient,
346 q31_t *quotient,

123