Home
last modified time | relevance | path

Searched refs:dividend (Results 1 – 25 of 62) sorted by relevance

123

/third_party/FreeBSD/sys/compat/linuxkpi/common/include/linux/
Dkernel.h269 static inline UINT64 div64_u64(UINT64 dividend, UINT64 divisor) in div64_u64() argument
271 return dividend / divisor; in div64_u64()
293 static inline INT64 div64_s64(INT64 dividend, INT64 divisor) in div64_s64() argument
295 return dividend / divisor; in div64_s64()
327 static inline INT64 div_s64_rem(INT64 dividend, INT32 divisor, INT32 *remainder) in div_s64_rem() argument
329 *remainder = dividend % divisor; in div_s64_rem()
330 return dividend / divisor; in div_s64_rem()
354 static inline UINT64 div64_u64_rem(UINT64 dividend, UINT64 divisor, UINT64 *remainder) in div64_u64_rem() argument
356 *remainder = dividend % divisor; in div64_u64_rem()
357 return dividend / divisor; in div64_u64_rem()
[all …]
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/
Deltwise_grad_cpu_kernel.cc110 T dividend = input2[i]; in AsinGrad() local
113 if (dividend == 0) { in AsinGrad()
118 … out[i] = dividend > 0 ? std::numeric_limits<T>::infinity() : -std::numeric_limits<T>::infinity(); in AsinGrad()
120 out[i] = dividend > 0 ? std::numeric_limits<T>::max() : std::numeric_limits<T>::min(); in AsinGrad()
124 out[i] = dividend / divisor; in AsinGrad()
131 T dividend = -input2[i]; in ACosGrad() local
134 if (dividend == 0) { in ACosGrad()
139 … out[i] = dividend > 0 ? std::numeric_limits<T>::infinity() : -std::numeric_limits<T>::infinity(); in ACosGrad()
141 out[i] = dividend > 0 ? std::numeric_limits<T>::max() : std::numeric_limits<T>::min(); in ACosGrad()
145 out[i] = dividend / divisor; in ACosGrad()
[all …]
Darithmetic_cpu_kernel.cc43 auto dividend = input1[idx_1]; in ElementRealDiv() local
48 if (dividend == zero) { in ElementRealDiv()
53 …out[i] = dividend > zero ? std::numeric_limits<T>::infinity() : -std::numeric_limits<T>::infinity(… in ElementRealDiv()
55 out[i] = dividend > zero ? std::numeric_limits<T>::max() : std::numeric_limits<T>::min(); in ElementRealDiv()
59 out[i] = dividend / divisor; in ElementRealDiv()
187 auto dividend = input1[iter.GetInputPosA()]; in RealDiv() local
192 if (dividend == zero) { in RealDiv()
197 …out[i] = dividend > zero ? std::numeric_limits<T>::infinity() : -std::numeric_limits<T>::infinity(… in RealDiv()
199 out[i] = dividend > zero ? std::numeric_limits<T>::max() : std::numeric_limits<T>::min(); in RealDiv()
203 out[i] = dividend / divisor; in RealDiv()
[all …]
Dl2_normalize_cpu_kernel.cc105 T dividend = input_addr[iter.GetInputPosA()]; in CalcOutput() local
108 if (dividend == (T)0) { in CalcOutput()
113 …output_addr[i] = dividend > (T)0 ? std::numeric_limits<T>::infinity() : -std::numeric_limits<T>::i… in CalcOutput()
115 … output_addr[i] = dividend > (T)0 ? std::numeric_limits<T>::max() : std::numeric_limits<T>::min(); in CalcOutput()
119 output_addr[i] = dividend / divisor; in CalcOutput()
Dscatter_arithmetic_cpu_kernel.cc127 auto dividend = input[indices[i] * inner_size_ + j]; in ScatterDiv() local
130 input[indices[i] * inner_size_ + j] = dividend / divisor; in ScatterDiv()
133 if (dividend == 0) { in ScatterDiv()
139 dividend > 0 ? std::numeric_limits<T>::infinity() : -std::numeric_limits<T>::infinity(); in ScatterDiv()
142 dividend > 0 ? std::numeric_limits<T>::max() : std::numeric_limits<T>::min(); in ScatterDiv()
/third_party/grpc/src/php/tests/generated_code/
Dmath_server.js38 var dividend = call.request.dividend;
47 quotient: Math.floor(dividend / divisor),
48 remainder: dividend % divisor
92 var dividend = div_args.dividend;
100 quotient: Math.floor(dividend / divisor),
101 remainder: dividend % divisor
Dmath_client.php39 $dividend = 7; variable
42 $div_arg->setDividend($dividend);
46 p("Dividing $dividend by $divisor");
81 $dividend = 2 * $i + 1; variable
83 $div_arg->setDividend($dividend);
86 p("client writing: $dividend / $divisor");
/third_party/protobuf/src/google/protobuf/stubs/
Dint128.cc83 void uint128::DivModImpl(uint128 dividend, uint128 divisor, in DivModImpl() argument
86 GOOGLE_LOG(FATAL) << "Division or mod by zero: dividend.hi=" << dividend.hi_ in DivModImpl()
87 << ", lo=" << dividend.lo_; in DivModImpl()
88 } else if (dividend < divisor) { in DivModImpl()
90 *remainder_ret = dividend; in DivModImpl()
93 int dividend_bit_length = Fls128(dividend); in DivModImpl()
100 if (shifted_divisor <= dividend) { in DivModImpl()
101 dividend -= shifted_divisor; in DivModImpl()
108 *remainder_ret = dividend; in DivModImpl()
/third_party/boost/boost/graph/
Dbc_clustering.hpp33 : threshold(threshold), dividend(1.0) in bc_clustering_threshold()
51 : threshold(threshold), dividend(1.0) in bc_clustering_threshold()
57 dividend = T((n - 1) * (n - 2)) / T(2); in bc_clustering_threshold()
67 return (max_centrality / dividend) < threshold; in operator ()()
72 T dividend; member
/third_party/grpc/src/php/tests/generated_code/Math/
DDivArgs.php19 protected $dividend = 0; variable in Math\\DivArgs
46 return $this->dividend;
57 $this->dividend = $var;
/third_party/grpc/src/ruby/bin/
Dmath_client.rb47 req = Math::DivArgs.new(dividend: 7, divisor: 3)
81 reqs << Math::DivArgs.new(dividend: 7, divisor: 3)
82 reqs << Math::DivArgs.new(dividend: 5, divisor: 2)
83 reqs << Math::DivArgs.new(dividend: 7, divisor: 2)
Dmath_server.rb105 Math::DivReply.new(quotient: div_args.dividend / div_args.divisor,
106 remainder: div_args.dividend % div_args.divisor)
133 resp = Math::DivReply.new(quotient: req.dividend / req.divisor,
134 remainder: req.dividend % req.divisor)
/third_party/skia/third_party/externals/icu/source/i18n/
Dgregoimp.cpp43 double ClockMath::floorDivide(double dividend, double divisor, in floorDivide() argument
47 double quotient = floorDivide(dividend, divisor); in floorDivide()
48 remainder = dividend - (quotient * divisor); in floorDivide()
70 remainder = dividend - (quotient * divisor); in floorDivide()
/third_party/icu/icu4c/source/i18n/
Dgregoimp.cpp43 double ClockMath::floorDivide(double dividend, double divisor, in floorDivide() argument
47 double quotient = floorDivide(dividend, divisor); in floorDivide()
48 remainder = dividend - (quotient * divisor); in floorDivide()
70 remainder = dividend - (quotient * divisor); in floorDivide()
/third_party/flutter/skia/third_party/externals/icu/source/i18n/
Dgregoimp.cpp43 double ClockMath::floorDivide(double dividend, double divisor, in floorDivide() argument
47 double quotient = floorDivide(dividend, divisor); in floorDivide()
48 remainder = dividend - (quotient * divisor); in floorDivide()
70 remainder = dividend - (quotient * divisor); in floorDivide()
/third_party/node/deps/icu-small/source/i18n/
Dgregoimp.cpp43 double ClockMath::floorDivide(double dividend, double divisor, in floorDivide() argument
47 double quotient = floorDivide(dividend, divisor); in floorDivide()
48 remainder = dividend - (quotient * divisor); in floorDivide()
70 remainder = dividend - (quotient * divisor); in floorDivide()
/third_party/icu/vendor/double-conversion/upstream/double-conversion/
Dfixed-dtoa.cc341 uint64_t dividend = significand; in FastFixedDtoa() local
355 dividend <<= exponent - divisor_power; in FastFixedDtoa()
356 quotient = static_cast<uint32_t>(dividend / divisor); in FastFixedDtoa()
357 remainder = (dividend % divisor) << divisor_power; in FastFixedDtoa()
360 quotient = static_cast<uint32_t>(dividend / divisor); in FastFixedDtoa()
361 remainder = (dividend % divisor) << exponent; in FastFixedDtoa()
/third_party/mindspore/mindspore/_extends/graph_kernel/expanders/
Dsqrt_grad.py27 dividend = graph_builder.emit('Mul', [x, const_two])
28 result = graph_builder.emit('RealDiv', [dout, dividend])
/third_party/abseil-cpp/absl/numeric/
Dint128.cc56 inline void DivModImpl(uint128 dividend, uint128 divisor, uint128* quotient_ret, in DivModImpl() argument
60 if (divisor > dividend) { in DivModImpl()
62 *remainder_ret = dividend; in DivModImpl()
66 if (divisor == dividend) { in DivModImpl()
76 const int shift = Fls128(dividend) - Fls128(denominator); in DivModImpl()
83 if (dividend >= denominator) { in DivModImpl()
84 dividend -= denominator; in DivModImpl()
91 *remainder_ret = dividend; in DivModImpl()
Dint128_test.cc984 absl::int128 dividend = pair.first; in TEST() local
989 EXPECT_EQ(quotient, dividend / divisor); in TEST()
990 EXPECT_EQ(quotient, absl::int128(dividend) /= divisor); in TEST()
991 EXPECT_EQ(remainder, dividend % divisor); in TEST()
992 EXPECT_EQ(remainder, absl::int128(dividend) %= divisor); in TEST()
1051 absl::int128 dividend; in TEST() member
1069 EXPECT_EQ(test_case.quotient, test_case.dividend / test_case.divisor); in TEST()
1071 absl::int128(test_case.dividend) /= test_case.divisor); in TEST()
1072 EXPECT_EQ(test_case.remainder, test_case.dividend % test_case.divisor); in TEST()
1074 absl::int128(test_case.dividend) %= test_case.divisor); in TEST()
/third_party/skia/third_party/externals/abseil-cpp/absl/numeric/
Dint128.cc56 inline void DivModImpl(uint128 dividend, uint128 divisor, uint128* quotient_ret, in DivModImpl() argument
60 if (divisor > dividend) { in DivModImpl()
62 *remainder_ret = dividend; in DivModImpl()
66 if (divisor == dividend) { in DivModImpl()
76 const int shift = Fls128(dividend) - Fls128(denominator); in DivModImpl()
83 if (dividend >= denominator) { in DivModImpl()
84 dividend -= denominator; in DivModImpl()
91 *remainder_ret = dividend; in DivModImpl()
Dint128_test.cc1002 absl::int128 dividend = pair.first; in TEST() local
1007 EXPECT_EQ(quotient, dividend / divisor); in TEST()
1008 EXPECT_EQ(quotient, absl::int128(dividend) /= divisor); in TEST()
1009 EXPECT_EQ(remainder, dividend % divisor); in TEST()
1010 EXPECT_EQ(remainder, absl::int128(dividend) %= divisor); in TEST()
1069 absl::int128 dividend; in TEST() member
1087 EXPECT_EQ(test_case.quotient, test_case.dividend / test_case.divisor); in TEST()
1089 absl::int128(test_case.dividend) /= test_case.divisor); in TEST()
1090 EXPECT_EQ(test_case.remainder, test_case.dividend % test_case.divisor); in TEST()
1092 absl::int128(test_case.dividend) %= test_case.divisor); in TEST()
/third_party/grpc/src/proto/math/
Dmath.proto21 int64 dividend = 1; field
43 // Div divides DivArgs.dividend by DivArgs.divisor and returns the quotient
/third_party/boost/boost/random/detail/
Dpolynomial.hpp224 void operator()(digit_t * dividend, std::size_t dividend_bits) in operator ()()
230 copy_bits(dividend, block_start, dividend_bits, &_partial_quotient[0]); in operator ()()
233 … add_shifted_inplace(block_size, &_partial_quotient[0], dividend + pos/bits, pos%bits); in operator ()()
235 …add_shifted_inplace(block_size, &_partial_quotient[0], dividend + block_start/bits, block_start%bi… in operator ()()
/third_party/boost/libs/crc/test/
Dcrc_test.cpp326 byte_type dividend = 0; in quick_crc32() local
332 if ( dividend & mask ) in quick_crc32()
348 crc_table[ quick_reflect(dividend, CHAR_BIT) ] in quick_crc32()
351 while ( ++dividend ); in quick_crc32()

123