/third_party/icu/icu4c/source/i18n/ |
D | double-conversion-bignum-dtoa.cpp | 71 Bignum* numerator, 82 Bignum* numerator, Bignum* denominator, 86 static void GenerateShortestDigits(Bignum* numerator, Bignum* denominator, 92 Bignum* numerator, Bignum* denominator, 99 Bignum* numerator, Bignum* denominator, 143 Bignum numerator; in BignumDtoa() local 154 &numerator, &denominator, in BignumDtoa() 158 &numerator, &denominator, in BignumDtoa() 165 GenerateShortestDigits(&numerator, &denominator, in BignumDtoa() 171 &numerator, &denominator, in BignumDtoa() [all …]
|
D | gregoimp.cpp | 25 int32_t ClockMath::floorDivide(int32_t numerator, int32_t denominator) { in floorDivide() argument 26 return (numerator >= 0) ? in floorDivide() 27 numerator / denominator : ((numerator + 1) / denominator) - 1; in floorDivide() 30 int64_t ClockMath::floorDivide(int64_t numerator, int64_t denominator) { in floorDivide() argument 31 return (numerator >= 0) ? in floorDivide() 32 numerator / denominator : ((numerator + 1) / denominator) - 1; in floorDivide() 35 int32_t ClockMath::floorDivide(double numerator, int32_t denominator, in floorDivide() argument 38 quotient = uprv_floor(numerator / denominator); in floorDivide() 39 remainder = (int32_t) (numerator - (quotient * denominator)); in floorDivide()
|
D | gregoimp.h | 41 static int32_t floorDivide(int32_t numerator, int32_t denominator); 52 static int64_t floorDivide(int64_t numerator, int64_t denominator); 63 static inline double floorDivide(double numerator, double denominator); 80 static int32_t floorDivide(double numerator, int32_t denominator, 267 inline double ClockMath::floorDivide(double numerator, double denominator) { in floorDivide() argument 268 return uprv_floor(numerator / denominator); in floorDivide()
|
/third_party/flutter/skia/third_party/externals/icu/source/i18n/ |
D | double-conversion-bignum-dtoa.cpp | 71 Bignum* numerator, 82 Bignum* numerator, Bignum* denominator, 86 static void GenerateShortestDigits(Bignum* numerator, Bignum* denominator, 92 Bignum* numerator, Bignum* denominator, 99 Bignum* numerator, Bignum* denominator, 143 Bignum numerator; in BignumDtoa() local 154 &numerator, &denominator, in BignumDtoa() 158 &numerator, &denominator, in BignumDtoa() 165 GenerateShortestDigits(&numerator, &denominator, in BignumDtoa() 171 &numerator, &denominator, in BignumDtoa() [all …]
|
D | gregoimp.cpp | 25 int32_t ClockMath::floorDivide(int32_t numerator, int32_t denominator) { in floorDivide() argument 26 return (numerator >= 0) ? in floorDivide() 27 numerator / denominator : ((numerator + 1) / denominator) - 1; in floorDivide() 30 int64_t ClockMath::floorDivide(int64_t numerator, int64_t denominator) { in floorDivide() argument 31 return (numerator >= 0) ? in floorDivide() 32 numerator / denominator : ((numerator + 1) / denominator) - 1; in floorDivide() 35 int32_t ClockMath::floorDivide(double numerator, int32_t denominator, in floorDivide() argument 38 quotient = uprv_floor(numerator / denominator); in floorDivide() 39 remainder = (int32_t) (numerator - (quotient * denominator)); in floorDivide()
|
D | gregoimp.h | 41 static int32_t floorDivide(int32_t numerator, int32_t denominator); 52 static int64_t floorDivide(int64_t numerator, int64_t denominator); 63 static inline double floorDivide(double numerator, double denominator); 80 static int32_t floorDivide(double numerator, int32_t denominator, 267 inline double ClockMath::floorDivide(double numerator, double denominator) { in floorDivide() argument 268 return uprv_floor(numerator / denominator); in floorDivide()
|
/third_party/node/deps/icu-small/source/i18n/ |
D | double-conversion-bignum-dtoa.cpp | 71 Bignum* numerator, 82 Bignum* numerator, Bignum* denominator, 86 static void GenerateShortestDigits(Bignum* numerator, Bignum* denominator, 92 Bignum* numerator, Bignum* denominator, 99 Bignum* numerator, Bignum* denominator, 143 Bignum numerator; in BignumDtoa() local 154 &numerator, &denominator, in BignumDtoa() 158 &numerator, &denominator, in BignumDtoa() 165 GenerateShortestDigits(&numerator, &denominator, in BignumDtoa() 171 &numerator, &denominator, in BignumDtoa() [all …]
|
D | gregoimp.cpp | 25 int32_t ClockMath::floorDivide(int32_t numerator, int32_t denominator) { in floorDivide() argument 26 return (numerator >= 0) ? in floorDivide() 27 numerator / denominator : ((numerator + 1) / denominator) - 1; in floorDivide() 30 int64_t ClockMath::floorDivide(int64_t numerator, int64_t denominator) { in floorDivide() argument 31 return (numerator >= 0) ? in floorDivide() 32 numerator / denominator : ((numerator + 1) / denominator) - 1; in floorDivide() 35 int32_t ClockMath::floorDivide(double numerator, int32_t denominator, in floorDivide() argument 38 quotient = uprv_floor(numerator / denominator); in floorDivide() 39 remainder = (int32_t) (numerator - (quotient * denominator)); in floorDivide()
|
D | gregoimp.h | 41 static int32_t floorDivide(int32_t numerator, int32_t denominator); 52 static int64_t floorDivide(int64_t numerator, int64_t denominator); 63 static inline double floorDivide(double numerator, double denominator); 80 static int32_t floorDivide(double numerator, int32_t denominator, 267 inline double ClockMath::floorDivide(double numerator, double denominator) { in floorDivide() argument 268 return uprv_floor(numerator / denominator); in floorDivide()
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | double-conversion-bignum-dtoa.cpp | 71 Bignum* numerator, 82 Bignum* numerator, Bignum* denominator, 86 static void GenerateShortestDigits(Bignum* numerator, Bignum* denominator, 92 Bignum* numerator, Bignum* denominator, 99 Bignum* numerator, Bignum* denominator, 143 Bignum numerator; in BignumDtoa() local 154 &numerator, &denominator, in BignumDtoa() 158 &numerator, &denominator, in BignumDtoa() 165 GenerateShortestDigits(&numerator, &denominator, in BignumDtoa() 171 &numerator, &denominator, in BignumDtoa() [all …]
|
D | gregoimp.cpp | 25 int32_t ClockMath::floorDivide(int32_t numerator, int32_t denominator) { in floorDivide() argument 26 return (numerator >= 0) ? in floorDivide() 27 numerator / denominator : ((numerator + 1) / denominator) - 1; in floorDivide() 30 int64_t ClockMath::floorDivide(int64_t numerator, int64_t denominator) { in floorDivide() argument 31 return (numerator >= 0) ? in floorDivide() 32 numerator / denominator : ((numerator + 1) / denominator) - 1; in floorDivide() 35 int32_t ClockMath::floorDivide(double numerator, int32_t denominator, in floorDivide() argument 38 quotient = uprv_floor(numerator / denominator); in floorDivide() 39 remainder = (int32_t) (numerator - (quotient * denominator)); in floorDivide()
|
D | gregoimp.h | 41 static int32_t floorDivide(int32_t numerator, int32_t denominator); 52 static int64_t floorDivide(int64_t numerator, int64_t denominator); 63 static inline double floorDivide(double numerator, double denominator); 80 static int32_t floorDivide(double numerator, int32_t denominator, 267 inline double ClockMath::floorDivide(double numerator, double denominator) { in floorDivide() argument 268 return uprv_floor(numerator / denominator); in floorDivide()
|
/third_party/python/Lib/ |
D | fractions.py | 62 def __new__(cls, numerator=0, denominator=None, *, _normalize=True): argument 96 if type(numerator) is int: 97 self._numerator = numerator 101 elif isinstance(numerator, numbers.Rational): 102 self._numerator = numerator.numerator 103 self._denominator = numerator.denominator 106 elif isinstance(numerator, (float, Decimal)): 108 self._numerator, self._denominator = numerator.as_integer_ratio() 111 elif isinstance(numerator, str): 113 m = _RATIONAL_FORMAT.match(numerator) [all …]
|
/third_party/boost/libs/rational/test/ |
D | rational_test.cpp | 510 BOOST_CHECK_EQUAL( r1.numerator(), static_cast<T>( 0) ); in BOOST_FIXTURE_TEST_SUITE() 511 BOOST_CHECK_EQUAL( r2.numerator(), static_cast<T>( 0) ); in BOOST_FIXTURE_TEST_SUITE() 512 BOOST_CHECK_EQUAL( r3.numerator(), static_cast<T>( 1) ); in BOOST_FIXTURE_TEST_SUITE() 513 BOOST_CHECK_EQUAL( r4.numerator(), static_cast<T>(-3) ); in BOOST_FIXTURE_TEST_SUITE() 514 BOOST_CHECK_EQUAL( r5.numerator(), static_cast<T>( 7) ); in BOOST_FIXTURE_TEST_SUITE() 515 BOOST_CHECK_EQUAL( r6.numerator(), static_cast<T>( 1) ); in BOOST_FIXTURE_TEST_SUITE() 516 BOOST_CHECK_EQUAL( r7.numerator(), static_cast<T>(-2) ); in BOOST_FIXTURE_TEST_SUITE() 517 BOOST_CHECK_EQUAL( r8.numerator(), static_cast<T>(-2) ); in BOOST_FIXTURE_TEST_SUITE() 518 BOOST_CHECK_EQUAL( r9.numerator(), static_cast<T>( 1) ); in BOOST_FIXTURE_TEST_SUITE() 542 BOOST_CHECK_EQUAL( r.numerator(), static_cast<T>(3) ); in BOOST_AUTO_TEST_CASE_TEMPLATE() [all …]
|
D | constexpr_test.cpp | 19 static_assert(i1.numerator() == 0, "constexpr test"); in main() 21 static_assert(i2.numerator() == 3, "constexpr test"); in main() 23 static_assert(i3.numerator() == 3, "constexpr test"); in main()
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/ |
D | Grego.java | 185 public static long floorDivide(long numerator, long denominator) { in floorDivide() argument 188 return (numerator >= 0) ? in floorDivide() 189 numerator / denominator : in floorDivide() 190 ((numerator + 1) / denominator) - 1; in floorDivide() 193 private static long floorDivide(long numerator, long denominator, long[] remainder) { in floorDivide() argument 194 if (numerator >= 0) { in floorDivide() 195 remainder[0] = numerator % denominator; in floorDivide() 196 return numerator / denominator; in floorDivide() 198 long quotient = ((numerator + 1) / denominator) - 1; in floorDivide() 199 remainder[0] = numerator - (quotient * denominator); in floorDivide()
|
/third_party/boost/boost/math/tools/ |
D | signal_statistics.hpp | 137 double numerator = 0; in oracle_snr() local 141 numerator += signal[i]*signal[i]; in oracle_snr() 144 if (numerator == 0 && denominator == 0) in oracle_snr() 152 return numerator/denominator; in oracle_snr() 158 typename Real::value_type numerator = 0; in oracle_snr() local 162 numerator += norm(signal[i]); in oracle_snr() 165 if (numerator == 0 && denominator == 0) in oracle_snr() 174 return numerator/denominator; in oracle_snr() 178 Real numerator = 0; in oracle_snr() local 182 numerator += signal[i]*signal[i]; in oracle_snr() [all …]
|
/third_party/boost/boost/math/statistics/ |
D | signal_statistics.hpp | 135 double numerator = 0; in oracle_snr() local 139 numerator += signal[i]*signal[i]; in oracle_snr() 142 if (numerator == 0 && denominator == 0) in oracle_snr() 150 return numerator/denominator; in oracle_snr() 156 typename Real::value_type numerator = 0; in oracle_snr() local 160 numerator += norm(signal[i]); in oracle_snr() 163 if (numerator == 0 && denominator == 0) in oracle_snr() 172 return numerator/denominator; in oracle_snr() 176 Real numerator = 0; in oracle_snr() local 180 numerator += signal[i]*signal[i]; in oracle_snr() [all …]
|
/third_party/boost/boost/geometry/policies/robustness/ |
D | segment_ratio.hpp | 43 return boost::rational<Type>(lhs.numerator(), lhs.denominator()) in apply() 44 < boost::rational<Type>(rhs.numerator(), rhs.denominator()); in apply() 56 Type const a = lhs.numerator() / lhs.denominator(); in apply() 57 Type const b = rhs.numerator() / rhs.denominator(); in apply() 76 return boost::rational<Type>(lhs.numerator(), lhs.denominator()) in apply() 77 == boost::rational<Type>(rhs.numerator(), rhs.denominator()); in apply() 89 Type const a = lhs.numerator() / lhs.denominator(); in apply() 90 Type const b = rhs.numerator() / rhs.denominator(); in apply() 126 inline Type const& numerator() const { return m_numerator; } in numerator() function in boost::geometry::segment_ratio
|
/third_party/boost/boost/random/ |
D | uniform_real_distribution.hpp | 40 result_type numerator = static_cast<T>(eng() - (eng.min)()); in generate_uniform_real() local 43 BOOST_ASSERT(numerator >= 0 && numerator <= divisor); in generate_uniform_real() 44 T result = numerator / divisor * (max_value - min_value) + min_value; in generate_uniform_real() 57 result_type numerator = static_cast<T>(subtract<base_result>()(eng(), (eng.min)())); in generate_uniform_real() local 60 BOOST_ASSERT(numerator >= 0 && numerator <= divisor); in generate_uniform_real() 61 T result = numerator / divisor * (max_value - min_value) + min_value; in generate_uniform_real()
|
/third_party/boost/libs/ratio/test/ratio_arithmetic/ |
D | ratio_add_2_fail.cpp | 18 struct numerator; 21 struct numerator<boost::ratio<N,D> > { struct 27 numerator<boost::ratio_add<boost::ratio<1,2>,boost::ratio<1,3> > >::value == 1) argument
|
/third_party/boringssl/src/fuzz/ |
D | bn_div.cc | 40 bssl::UniquePtr<BIGNUM> numerator( in LLVMFuzzerTestOneInput() local 42 BN_set_negative(numerator.get(), sign0 % 2); in LLVMFuzzerTestOneInput() 59 CHECK(BN_div(result.get(), remainder.get(), numerator.get(), divisor.get(), in LLVMFuzzerTestOneInput() 66 CHECK(BN_cmp(result.get(), numerator.get()) == 0); in LLVMFuzzerTestOneInput()
|
/third_party/boost/boost/geometry/srs/projections/impl/ |
D | pj_init.hpp | 160 T const numerator = geometry::str_cast<T>(s.substr(0, pos)); in pj_init_units() local 162 if (numerator == 0.0 || denominator == 0.0) in pj_init_units() 166 to_meter = numerator / denominator; in pj_init_units() 196 T const numerator = pj_units[i].numerator; in pj_init_units() local 198 if (numerator == 0.0 || denominator == 0.0) in pj_init_units() 202 to_meter = numerator / denominator; in pj_init_units() 273 T const numerator = pj_units[i].numerator; in apply() local 275 if (numerator == 0.0 || denominator == 0.0) in apply() 279 to_meter = numerator / denominator; in apply()
|
/third_party/grpc/src/proto/grpc/testing/xds/v3/ |
D | percent.proto | 23 // both a numerator and denominator that together determine the final fractional value. 46 // Specifies the numerator. Defaults to 0. 47 uint32 numerator = 1; field 49 // Specifies the denominator. If the denominator specified is less than the numerator, the final
|
/third_party/boost/boost/math/interpolators/detail/ |
D | barycentric_rational_detail.hpp | 155 Real numerator = 0; in operator ()() local 167 numerator += t*m_y[i]; in operator ()() 170 return numerator/denominator; in operator ()() 189 Real numerator = 0; in prime() local 208 numerator += t*diff; in prime() 212 return numerator/denominator; in prime()
|