Home
last modified time | relevance | path

Searched refs:numerator (Results 1 – 25 of 137) sorted by relevance

123456

/external/v8/src/
Dbignum-dtoa.cc35 Bignum* numerator,
46 Bignum* numerator, Bignum* denominator,
50 static void GenerateShortestDigits(Bignum* numerator, Bignum* denominator,
56 Bignum* numerator, Bignum* denominator,
63 Bignum* numerator, Bignum* denominator,
92 Bignum numerator; in BignumDtoa() local
103 &numerator, &denominator, in BignumDtoa()
107 &numerator, &denominator, in BignumDtoa()
113 GenerateShortestDigits(&numerator, &denominator, in BignumDtoa()
119 &numerator, &denominator, in BignumDtoa()
[all …]
/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/
DFraction.java90 private final int numerator; field in Fraction
188 this.numerator = (int) a0; in Fraction()
231 this.numerator = (int) p2; in Fraction()
234 this.numerator = (int) p1; in Fraction()
281 this.numerator = num; in Fraction()
291 if (numerator >= 0) { in abs()
306 long nOd = ((long) numerator) * object.denominator; in compareTo()
307 long dOn = ((long) denominator) * object.numerator; in compareTo()
318 return (double)numerator / (double)denominator; in doubleValue()
339 return (numerator == rhs.numerator) && in equals()
[all …]
DBigFraction.java89 private final BigInteger numerator; field in BigFraction
126 numerator = BigInteger.ZERO; in BigFraction()
144 numerator = num; in BigFraction()
198 numerator = BigInteger.valueOf(m); in BigFraction()
201 numerator = BigInteger.valueOf(m).multiply(BigInteger.ZERO.flipBit(k)); in BigFraction()
281 numerator = BigInteger.valueOf(a0); in BigFraction()
326 numerator = BigInteger.valueOf(p2); in BigFraction()
329 numerator = BigInteger.valueOf(p1); in BigFraction()
430 public static BigFraction getReducedFraction(final int numerator, in getReducedFraction() argument
432 if (numerator == 0) { in getReducedFraction()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DGrego.java181 public static long floorDivide(long numerator, long denominator) { in floorDivide() argument
184 return (numerator >= 0) ? in floorDivide()
185 numerator / denominator : in floorDivide()
186 ((numerator + 1) / denominator) - 1; in floorDivide()
189 private static long floorDivide(long numerator, long denominator, long[] remainder) { in floorDivide() argument
190 if (numerator >= 0) { in floorDivide()
191 remainder[0] = numerator % denominator; in floorDivide()
192 return numerator / denominator; in floorDivide()
194 long quotient = ((numerator + 1) / denominator) - 1; in floorDivide()
195 remainder[0] = numerator - (quotient * denominator); in floorDivide()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DGrego.java183 public static long floorDivide(long numerator, long denominator) { in floorDivide() argument
186 return (numerator >= 0) ? in floorDivide()
187 numerator / denominator : in floorDivide()
188 ((numerator + 1) / denominator) - 1; in floorDivide()
191 private static long floorDivide(long numerator, long denominator, long[] remainder) { in floorDivide() argument
192 if (numerator >= 0) { in floorDivide()
193 remainder[0] = numerator % denominator; in floorDivide()
194 return numerator / denominator; in floorDivide()
196 long quotient = ((numerator + 1) / denominator) - 1; in floorDivide()
197 remainder[0] = numerator - (quotient * denominator); in floorDivide()
/external/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/
DLongMath.java232 long numerator = n--; in binomial() local
246 numerator *= n; in binomial()
252 result = multiplyFraction(result, numerator, denominator); in binomial()
253 numerator = n; in binomial()
258 return multiplyFraction(result, numerator, denominator); in binomial()
266 static long multiplyFraction(long x, long numerator, long denominator) { in multiplyFraction() argument
268 return numerator / denominator; in multiplyFraction()
275 return x * (numerator / denominator); in multiplyFraction()
/external/clang/test/CodeGen/
Dexceptions-seh.c10 void try_body(int numerator, int denominator, int *myres) { in try_body() argument
11 *myres = numerator / denominator; in try_body()
18 int safe_div(int numerator, int denominator, int *res) { in safe_div() argument
22 try_body(numerator, denominator, &myres); in safe_div()
/external/icu/icu4c/source/i18n/
Dgregoimp.h39 static int32_t floorDivide(int32_t numerator, int32_t denominator);
50 static inline double floorDivide(double numerator, double denominator);
67 static int32_t floorDivide(double numerator, int32_t denominator,
254 inline double ClockMath::floorDivide(double numerator, double denominator) { in floorDivide() argument
255 return uprv_floor(numerator / denominator); in floorDivide()
Dgregoimp.cpp27 int32_t ClockMath::floorDivide(int32_t numerator, int32_t denominator) { in floorDivide() argument
28 return (numerator >= 0) ? in floorDivide()
29 numerator / denominator : ((numerator + 1) / denominator) - 1; in floorDivide()
32 int32_t ClockMath::floorDivide(double numerator, int32_t denominator, in floorDivide() argument
35 quotient = uprv_floor(numerator / denominator); in floorDivide()
36 remainder = (int32_t) (numerator - (quotient * denominator)); in floorDivide()
/external/jhead/
Dexif.c467 static void float2urat(double value, unsigned int max, unsigned int *numerator, in float2urat() argument
470 *numerator = 0; in float2urat()
476 *numerator = max; in float2urat()
485 *numerator = 0; in float2urat()
488 *numerator = n; in float2urat()
505 *numerator = n; in float2urat()
513 *numerator = 0; in float2urat()
517 static void ConvertDoubleToURational(double value, unsigned int *numerator, in ConvertDoubleToURational() argument
519 float2urat(value, 0xFFFFFFFFU, numerator, denominator); in ConvertDoubleToURational()
522 static void ConvertDoubleToSRational(double value, int *numerator, in ConvertDoubleToSRational() argument
[all …]
/external/guava/guava/src/com/google/common/math/
DLongMath.java677 long numerator = n--;
691 numerator *= n;
697 result = multiplyFraction(result, numerator, denominator);
698 numerator = n;
703 return multiplyFraction(result, numerator, denominator);
711 static long multiplyFraction(long x, long numerator, long denominator) {
713 return numerator / denominator;
720 return x * (numerator / denominator);
/external/webrtc/webrtc/modules/audio_coding/neteq/
Dstatistics_calculator.cc282 uint16_t StatisticsCalculator::CalculateQ14Ratio(size_t numerator, in CalculateQ14Ratio() argument
284 if (numerator == 0) { in CalculateQ14Ratio()
286 } else if (numerator < denominator) { in CalculateQ14Ratio()
288 assert((numerator << 14) / denominator < (1 << 14)); in CalculateQ14Ratio()
289 return static_cast<uint16_t>((numerator << 14) / denominator); in CalculateQ14Ratio()
/external/piex/src/tiff_directory/
Dtiff_directory.cc131 my_value[c].numerator = Get16u(value_ptr + c * 2, is_big_endian, &err); in Get()
136 my_value[c].numerator = Get32u(value_ptr + c * 4, is_big_endian, &err); in Get()
141 my_value[c].numerator = Get32u(value_ptr + c * 8, is_big_endian, &err); in Get()
186 my_value[c].numerator = Get16s(value_ptr + c * 2, is_big_endian, &err); in Get()
191 my_value[c].numerator = Get32s(value_ptr + c * 4, is_big_endian, &err); in Get()
196 my_value[c].numerator = Get32s(value_ptr + c * 8, is_big_endian, &err); in Get()
/external/libexif/libexif/
Dexif-entry.c295 r.numerator = (ExifLong) sr.numerator; in exif_entry_fix()
328 sr.numerator = (ExifLong) r.numerator; in exif_entry_fix()
549 (double) v_rat.numerator / in exif_entry_format_value()
553 (unsigned long) v_rat.numerator, in exif_entry_format_value()
572 (double) v_srat.numerator / in exif_entry_format_value()
576 (long) v_srat.numerator, in exif_entry_format_value()
1011 d = (double) v_rat.numerator / (double) v_rat.denominator; in exif_entry_get_value()
1019 if (!v_rat.denominator || (0x80000000 == v_rat.numerator)) { in exif_entry_get_value()
1023 d = (double) v_rat.numerator / (double) v_rat.denominator; in exif_entry_get_value()
1060 (int) (d * (double) v_rat.numerator / in exif_entry_get_value()
[all …]
Dexif-utils.c181 r.numerator = buf ? exif_get_slong (buf, order) : 0; in exif_get_srational()
192 r.numerator = buf ? exif_get_long (buf, order) : 0; in exif_get_rational()
203 exif_set_long (buf, order, value.numerator); in exif_set_rational()
212 exif_set_slong (buf, order, value.numerator); in exif_set_srational()
Dexif-utils.h60 typedef struct {ExifLong numerator; ExifLong denominator;} ExifRational; member
65 typedef struct {ExifSLong numerator; ExifSLong denominator;} ExifSRational; member
/external/webrtc/webrtc/modules/audio_coding/codecs/ilbc/
Dstate_construct.c38 int16_t numerator[1+LPC_FILTERORDER]; in WebRtcIlbcfix_StateConstruct() local
48 numerator[k] = syntDenum[LPC_FILTERORDER-k]; in WebRtcIlbcfix_StateConstruct()
99 numerator, LPC_FILTERORDER+1, len + LPC_FILTERORDER); in WebRtcIlbcfix_StateConstruct()
Dstate_search.c44 int16_t numerator[1+LPC_FILTERORDER]; in WebRtcIlbcfix_StateSearch() local
56 numerator[i] = (syntDenum[LPC_FILTERORDER-i]>>scaleRes); in WebRtcIlbcfix_StateSearch()
67 WebRtcSpl_FilterMAFastQ12(residualLong, sampleMa, numerator, in WebRtcIlbcfix_StateSearch()
/external/gemmlowp/internal/
Dunpack_neon.h27 template <std::uint32_t numerator, std::uint32_t denominator>
29 static_assert(numerator > 0 && denominator > 0, in RoundingMultiplyByConstantFraction()
32 if (numerator == denominator) { in RoundingMultiplyByConstantFraction()
37 (numerator + denominator / 2) / denominator; in RoundingMultiplyByConstantFraction()
39 numerator - int_quotient * denominator; in RoundingMultiplyByConstantFraction()
Dunpack.h58 template <std::uint32_t numerator, std::uint32_t denominator>
60 if (numerator == denominator) { in RoundingMultiplyByConstantFraction()
69 (numerator + denominator / 2) / denominator; in RoundingMultiplyByConstantFraction()
71 numerator - int_quotient * denominator; in RoundingMultiplyByConstantFraction()
/external/chromium-trace/catapult/third_party/coverage/coverage/
Dresults.py215 numerator, denominator = self.ratio_covered
216 pc_cov = (100.0 * numerator) / denominator
250 numerator = self.n_executed + self.n_executed_branches
252 return numerator, denominator
/external/libvpx/libvpx/
Divfdec.c56 input_ctx->framerate.numerator = mem_get_le32(raw_hdr + 16); in file_is_ivf()
58 fix_framerate(&input_ctx->framerate.numerator, in file_is_ivf()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/
DCalendar.java6145 protected static final long floorDivide(long numerator, long denominator) {
6148 return (numerator >= 0) ?
6149 numerator / denominator :
6150 ((numerator + 1) / denominator) - 1;
6164 protected static final int floorDivide(int numerator, int denominator) {
6167 return (numerator >= 0) ?
6168 numerator / denominator :
6169 ((numerator + 1) / denominator) - 1;
6187 protected static final int floorDivide(int numerator, int denominator, int[] remainder) {
6188 if (numerator >= 0) {
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/util/
DCalendar.java5948 protected static final long floorDivide(long numerator, long denominator) {
5951 return (numerator >= 0) ?
5952 numerator / denominator :
5953 ((numerator + 1) / denominator) - 1;
5966 protected static final int floorDivide(int numerator, int denominator) {
5969 return (numerator >= 0) ?
5970 numerator / denominator :
5971 ((numerator + 1) / denominator) - 1;
5988 protected static final int floorDivide(int numerator, int denominator, int[] remainder) {
5989 if (numerator >= 0) {
[all …]
/external/opencv3/modules/video/src/
Dbgfg_KNN.cpp403 float numerator = 0.0f; in _cvCheckPixelBackgroundNP() local
407 numerator += (float)data[c] * mean_m[c]; in _cvCheckPixelBackgroundNP()
416 if( numerator <= denominator && numerator >= tau*denominator ) in _cvCheckPixelBackgroundNP()
418 float a = numerator / denominator; in _cvCheckPixelBackgroundNP()

123456