Home
last modified time | relevance | path

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

12345678

/external/pthreadpool/src/
Dfastpath.c165 size_t i = index_i_j.quotient; in pthreadpool_thread_parallelize_2d_fastpath()
186 task(argument, index_i_j.quotient, index_i_j.remainder); in pthreadpool_thread_parallelize_2d_fastpath()
212 size_t i = tile_index_i_j.quotient; in pthreadpool_thread_parallelize_2d_tile_1d_fastpath()
236 task(argument, tile_index_i_j.quotient, start_j, min(range_j - start_j, tile_j)); in pthreadpool_thread_parallelize_2d_tile_1d_fastpath()
263 size_t start_i = tile_index_i_j.quotient * tile_i; in pthreadpool_thread_parallelize_2d_tile_2d_fastpath()
287 const size_t start_i = tile_index_i_j.quotient * tile_i; in pthreadpool_thread_parallelize_2d_tile_2d_fastpath()
327 size_t start_i = index.quotient * tile_i; in pthreadpool_thread_parallelize_2d_tile_2d_with_uarch_fastpath()
349 const size_t start_i = tile_index_i_j.quotient * tile_i; in pthreadpool_thread_parallelize_2d_tile_2d_with_uarch_fastpath()
377 const struct fxdiv_result_size_t index_i_j = fxdiv_divide_size_t(index_ij_k.quotient, range_j); in pthreadpool_thread_parallelize_3d_fastpath()
378 size_t i = index_i_j.quotient; in pthreadpool_thread_parallelize_3d_fastpath()
[all …]
Dportable-api.c151 size_t i = index_i_j.quotient; in thread_parallelize_2d()
173 task(argument, index_i_j.quotient, index_i_j.remainder); in thread_parallelize_2d()
193 size_t i = tile_index_i_j.quotient; in thread_parallelize_2d_tile_1d()
218 task(argument, tile_index_i_j.quotient, start_j, min(range_j - start_j, tile_j)); in thread_parallelize_2d_tile_1d()
239 size_t start_i = tile_index_i_j.quotient * tile_i; in thread_parallelize_2d_tile_2d()
264 const size_t start_i = tile_index_i_j.quotient * tile_i; in thread_parallelize_2d_tile_2d()
298 size_t start_i = index.quotient * tile_i; in thread_parallelize_2d_tile_2d_with_uarch()
321 const size_t start_i = tile_index_i_j.quotient * tile_i; in thread_parallelize_2d_tile_2d_with_uarch()
343 const struct fxdiv_result_size_t index_i_j = fxdiv_divide_size_t(index_ij_k.quotient, range_j); in thread_parallelize_3d()
344 size_t i = index_i_j.quotient; in thread_parallelize_3d()
[all …]
/external/FXdiv/bench/
Dquotient.cc9 uint32_t quotient = fxdiv_quotient_uint32_t(x++, divisor); in fxdiv_quotient_uint32_t() local
10 benchmark::DoNotOptimize(quotient); in fxdiv_quotient_uint32_t()
19 uint64_t quotient = fxdiv_quotient_uint64_t(x++, divisor); in fxdiv_quotient_uint64_t() local
20 benchmark::DoNotOptimize(quotient); in fxdiv_quotient_uint64_t()
30 uint32_t quotient = x-- / divisor; in native_quotient_uint32_t() local
31 benchmark::DoNotOptimize(quotient); in native_quotient_uint32_t()
41 const uint64_t quotient = x-- / divisor; in native_quotient_uint64_t() local
42 benchmark::DoNotOptimize(quotient); in native_quotient_uint64_t()
/external/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 …]
/external/FXdiv/include/
Dfxdiv.h88 uint32_t quotient; member
100 uint64_t quotient; member
112 size_t quotient; member
375 const uint32_t quotient = fxdiv_quotient_uint32_t(n, divisor); in fxdiv_remainder_uint32_t() local
376 return n - quotient * divisor.value; in fxdiv_remainder_uint32_t()
380 const uint64_t quotient = fxdiv_quotient_uint64_t(n, divisor); in fxdiv_remainder_uint64_t() local
381 return n - quotient * divisor.value; in fxdiv_remainder_uint64_t()
385 const size_t quotient = fxdiv_quotient_size_t(n, divisor); in fxdiv_remainder_size_t() local
386 return n - quotient * divisor.value; in fxdiv_remainder_size_t()
390 const uint32_t quotient = fxdiv_quotient_uint32_t(n, granularity); in fxdiv_round_down_uint32_t() local
[all …]
/external/llvm-project/compiler-rt/lib/builtins/
Dudivmodti4.c106 utwords quotient; in __udivmodti4() local
118 quotient.s.low = udiv128by64to64(dividend.s.high, dividend.s.low, in __udivmodti4()
120 quotient.s.high = 0; in __udivmodti4()
124 quotient.s.high = dividend.s.high / divisor.s.low; in __udivmodti4()
126 quotient.s.low = udiv128by64to64(dividend.s.high, dividend.s.low, in __udivmodti4()
131 return quotient.all; in __udivmodti4()
137 quotient.s.high = 0; in __udivmodti4()
138 quotient.s.low = 0; in __udivmodti4()
140 quotient.s.low <<= 1; in __udivmodti4()
149 quotient.s.low |= s & 1; in __udivmodti4()
[all …]
/external/llvm-project/libc/test/src/math/
DRemQuoTest.h36 int quotient; in testSpecialNumbers() local
41 EXPECT_NE(isnan(func(x, y, &quotient)), 0); in testSpecialNumbers()
43 EXPECT_NE(isnan(func(x, y, &quotient)), 0); in testSpecialNumbers()
47 EXPECT_NE(isnan(func(x, y, &quotient)), 0); in testSpecialNumbers()
49 EXPECT_NE(isnan(func(x, y, &quotient)), 0); in testSpecialNumbers()
53 EXPECT_NE(isnan(func(x, y, &quotient)), 0); in testSpecialNumbers()
57 EXPECT_NE(isnan(func(x, y, &quotient)), 0); in testSpecialNumbers()
61 EXPECT_NE(isnan(func(x, y, &quotient)), 0); in testSpecialNumbers()
65 EXPECT_FP_EQ(func(x, y, &quotient), zero); in testSpecialNumbers()
69 EXPECT_FP_EQ(func(x, y, &quotient), negZero); in testSpecialNumbers()
[all …]
/external/guava/android/guava/src/com/google/common/math/
DQuantiles.java296 int quotient = (int) LongMath.divide(numerator, scale, RoundingMode.DOWN); in computeInPlace() local
297 int remainder = (int) (numerator - (long) quotient * scale); in computeInPlace()
298 selectInPlace(quotient, dataset, 0, dataset.length - 1); in computeInPlace()
300 return dataset[quotient]; in computeInPlace()
302 selectInPlace(quotient + 1, dataset, quotient + 1, dataset.length - 1); in computeInPlace()
303 return interpolate(dataset[quotient], dataset[quotient + 1], remainder, scale); in computeInPlace()
424 int quotient = (int) LongMath.divide(numerator, scale, RoundingMode.DOWN); in computeInPlace() local
425 int remainder = (int) (numerator - (long) quotient * scale); in computeInPlace()
426 quotients[i] = quotient; in computeInPlace()
428 requiredSelections[requiredSelectionsCount] = quotient; in computeInPlace()
[all …]
/external/guava/guava/src/com/google/common/math/
DQuantiles.java296 int quotient = (int) LongMath.divide(numerator, scale, RoundingMode.DOWN); in computeInPlace() local
297 int remainder = (int) (numerator - (long) quotient * scale); in computeInPlace()
298 selectInPlace(quotient, dataset, 0, dataset.length - 1); in computeInPlace()
300 return dataset[quotient]; in computeInPlace()
302 selectInPlace(quotient + 1, dataset, quotient + 1, dataset.length - 1); in computeInPlace()
303 return interpolate(dataset[quotient], dataset[quotient + 1], remainder, scale); in computeInPlace()
424 int quotient = (int) LongMath.divide(numerator, scale, RoundingMode.DOWN); in computeInPlace() local
425 int remainder = (int) (numerator - (long) quotient * scale); in computeInPlace()
426 quotients[i] = quotient; in computeInPlace()
428 requiredSelections[requiredSelectionsCount] = quotient; in computeInPlace()
[all …]
/external/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 %=()
/external/libxaac/decoder/
Dixheaacd_basic_ops.h74 WORD32 quotient; in ixheaacd_div32_pos_normb() local
81 quotient = MAX_32; in ixheaacd_div32_pos_normb()
83 quotient = 0; in ixheaacd_div32_pos_normb()
86 quotient = quotient << 1; in ixheaacd_div32_pos_normb()
90 quotient += 1; in ixheaacd_div32_pos_normb()
97 return quotient; in ixheaacd_div32_pos_normb()
Dixheaacd_basic_funcs.c125 WORD32 quotient = 0; in ixheaacd_fix_div_dec() local
136 quotient = (quotient << 1); in ixheaacd_fix_div_dec()
140 quotient++; in ixheaacd_fix_div_dec()
144 if (sign < 0) quotient = -(quotient); in ixheaacd_fix_div_dec()
146 return quotient; in ixheaacd_fix_div_dec()
/external/FXdiv/
DCMakeLists.txt71 ADD_EXECUTABLE(quotient-test test/quotient.cc)
72 SET_TARGET_PROPERTIES(quotient-test PROPERTIES
75 TARGET_LINK_LIBRARIES(quotient-test fxdiv gtest gtest_main)
76 ADD_TEST(quotient quotient-test)
106 ADD_EXECUTABLE(quotient-bench bench/quotient.cc)
107 SET_TARGET_PROPERTIES(quotient-bench PROPERTIES
110 TARGET_LINK_LIBRARIES(quotient-bench fxdiv benchmark)
/external/compiler-rt/lib/builtins/
Ddivdf3.c135 rep_t quotient, quotientLo; in ARM_EABI_FNALIAS() local
136 wideMultiply(aSignificand << 2, reciprocal, &quotient, &quotientLo); in ARM_EABI_FNALIAS()
152 if (quotient < (implicitBit << 1)) { in ARM_EABI_FNALIAS()
153 residual = (aSignificand << 53) - quotient * bSignificand; in ARM_EABI_FNALIAS()
156 quotient >>= 1; in ARM_EABI_FNALIAS()
157 residual = (aSignificand << 52) - quotient * bSignificand; in ARM_EABI_FNALIAS()
176 rep_t absResult = quotient & significandMask; in ARM_EABI_FNALIAS()
Ddivsf3.c121 rep_t quotient = (uint64_t)reciprocal*(aSignificand << 1) >> 32; in ARM_EABI_FNALIAS() local
137 if (quotient < (implicitBit << 1)) { in ARM_EABI_FNALIAS()
138 residual = (aSignificand << 24) - quotient * bSignificand; in ARM_EABI_FNALIAS()
141 quotient >>= 1; in ARM_EABI_FNALIAS()
142 residual = (aSignificand << 23) - quotient * bSignificand; in ARM_EABI_FNALIAS()
161 rep_t absResult = quotient & significandMask; in ARM_EABI_FNALIAS()
Ddivtf3.c149 rep_t quotient, quotientLo; in __divtf3() local
150 wideMultiply(aSignificand << 2, reciprocal, &quotient, &quotientLo); in __divtf3()
168 if (quotient < (implicitBit << 1)) { in __divtf3()
169 wideMultiply(quotient, bSignificand, &dummy, &qb); in __divtf3()
173 quotient >>= 1; in __divtf3()
174 wideMultiply(quotient, bSignificand, &dummy, &qb); in __divtf3()
192 rep_t absResult = quotient & significandMask; in __divtf3()
/external/libtextclassifier/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 …]
/external/angle/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 …]
/external/openscreen/third_party/abseil/src/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 …]
/external/rust/crates/grpcio-sys/grpc/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 …]
/external/abseil-cpp/absl/numeric/
Dint128.cc87 uint128 quotient = 0; in DivModImpl() local
96 quotient <<= 1; in DivModImpl()
99 quotient |= 1; in DivModImpl()
104 *quotient_ret = quotient; in DivModImpl()
160 uint128 quotient = 0; in operator /()
162 DivModImpl(lhs, rhs, &quotient, &remainder); in operator /()
163 return quotient; in operator /()
171 uint128 quotient = 0; in operator %()
173 DivModImpl(lhs, rhs, &quotient, &remainder); in operator %()
286 uint128 quotient = 0; in operator /() local
[all …]
/external/webrtc/third_party/abseil-cpp/absl/numeric/
Dint128.cc87 uint128 quotient = 0; in DivModImpl() local
96 quotient <<= 1; in DivModImpl()
99 quotient |= 1; in DivModImpl()
104 *quotient_ret = quotient; in DivModImpl()
160 uint128 quotient = 0; in operator /()
162 DivModImpl(lhs, rhs, &quotient, &remainder); in operator /()
163 return quotient; in operator /()
171 uint128 quotient = 0; in operator %()
173 DivModImpl(lhs, rhs, &quotient, &remainder); in operator %()
286 uint128 quotient = 0; in operator /() local
[all …]
/external/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()
/external/guava/android/guava/src/com/google/common/primitives/
DUnsignedLongs.java267 long quotient = ((dividend >>> 1) / divisor) << 1; in divide() local
268 long rem = dividend - quotient * divisor; in divide()
269 return quotient + (compare(rem, divisor) >= 0 ? 1 : 0); in divide()
303 long quotient = ((dividend >>> 1) / divisor) << 1; in remainder() local
304 long rem = dividend - quotient * divisor; in remainder()
480 long quotient; in toString() local
483 quotient = (x >>> 1) / (radix >>> 1); in toString()
485 quotient = divide(x, radix); in toString()
487 long rem = x - quotient * radix; in toString()
489 x = quotient; in toString()
/external/guava/guava/src/com/google/common/primitives/
DUnsignedLongs.java267 long quotient = ((dividend >>> 1) / divisor) << 1; in divide() local
268 long rem = dividend - quotient * divisor; in divide()
269 return quotient + (compare(rem, divisor) >= 0 ? 1 : 0); in divide()
303 long quotient = ((dividend >>> 1) / divisor) << 1; in remainder() local
304 long rem = dividend - quotient * divisor; in remainder()
480 long quotient; in toString() local
483 quotient = (x >>> 1) / (radix >>> 1); in toString()
485 quotient = divide(x, radix); in toString()
487 long rem = x - quotient * radix; in toString()
489 x = quotient; in toString()

12345678