Home
last modified time | relevance | path

Searched refs:denominator (Results 1 – 25 of 128) sorted by relevance

123456

/external/apache-commons-math/src/main/java/org/apache/commons/math/fraction/
DFraction.java87 private final int denominator; field in Fraction
189 this.denominator = 1; in Fraction()
232 this.denominator = (int) q2; in Fraction()
235 this.denominator = (int) q1; in Fraction()
282 this.denominator = den; in Fraction()
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()
340 (denominator == rhs.denominator); in equals()
360 return denominator; in getDenominator()
[all …]
DBigFraction.java92 private final BigInteger denominator; field in BigFraction
127 denominator = BigInteger.ONE; in BigFraction()
145 denominator = den; in BigFraction()
199 denominator = BigInteger.ZERO.flipBit(-k); in BigFraction()
202 denominator = BigInteger.ONE; in BigFraction()
282 denominator = BigInteger.ONE; in BigFraction()
327 denominator = BigInteger.valueOf(q2); in BigFraction()
330 denominator = BigInteger.valueOf(q1); in BigFraction()
431 final int denominator) { in getReducedFraction() argument
436 return new BigFraction(numerator, denominator); in getReducedFraction()
[all …]
/external/v8/src/
Dbignum-dtoa.cc36 Bignum* denominator,
46 Bignum* numerator, Bignum* denominator,
50 static void GenerateShortestDigits(Bignum* numerator, Bignum* denominator,
56 Bignum* numerator, Bignum* denominator,
63 Bignum* numerator, Bignum* denominator,
93 Bignum denominator; 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/guava/guava-gwt/src-super/com/google/common/math/super/com/google/common/math/
DLongMath.java233 long denominator = 1; in binomial() local
247 denominator *= i; in binomial()
252 result = multiplyFraction(result, numerator, denominator); in binomial()
254 denominator = i; 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()
270 long commonDivisor = gcd(x, denominator); in multiplyFraction()
272 denominator /= commonDivisor; in multiplyFraction()
275 return x * (numerator / denominator); in multiplyFraction()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DGrego.java181 public static long floorDivide(long numerator, long denominator) { in floorDivide() argument
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
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
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
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/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/guava/guava/src/com/google/common/math/
DLongMath.java678 long denominator = 1;
692 denominator *= i;
697 result = multiplyFraction(result, numerator, denominator);
699 denominator = i;
703 return multiplyFraction(result, numerator, denominator);
711 static long multiplyFraction(long x, long numerator, long denominator) {
713 return numerator / denominator;
715 long commonDivisor = gcd(x, denominator);
717 denominator /= commonDivisor;
720 return x * (numerator / denominator);
/external/gemmlowp/internal/
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()
75 denominator); in RoundingMultiplyByConstantFraction()
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()
43 denominator); in RoundingMultiplyByConstantFraction()
/external/piex/src/tiff_directory/
Dtiff_directory.cc132 my_value[c].denominator = 1; in Get()
137 my_value[c].denominator = 1; in Get()
142 my_value[c].denominator = in Get()
144 if (my_value[c].denominator == 0) { in Get()
187 my_value[c].denominator = 1; in Get()
192 my_value[c].denominator = 1; in Get()
197 my_value[c].denominator = in Get()
199 if (my_value[c].denominator == 0) { in Get()
/external/libexif/libexif/
Dexif-entry.c296 r.denominator = (ExifLong) sr.denominator; in exif_entry_fix()
329 sr.denominator = (ExifLong) r.denominator; in exif_entry_fix()
539 if (v_rat.denominator) { in exif_entry_format_value()
546 int decimals = (int)(log10(v_rat.denominator)-0.08+1.0); in exif_entry_format_value()
550 (double) v_rat.denominator); in exif_entry_format_value()
554 (unsigned long) v_rat.denominator); in exif_entry_format_value()
568 if (v_srat.denominator) { in exif_entry_format_value()
569 int decimals = (int)(log10(fabs(v_srat.denominator))-0.08+1.0); in exif_entry_format_value()
573 (double) v_srat.denominator); in exif_entry_format_value()
577 (long) v_srat.denominator); in exif_entry_format_value()
[all …]
Dexif-utils.c182 r.denominator = buf ? exif_get_slong (buf + 4, order) : 0; in exif_get_srational()
193 r.denominator = buf ? exif_get_long (buf + 4, order) : 0; in exif_get_rational()
204 exif_set_long (buf + 4, order, value.denominator); in exif_set_rational()
213 exif_set_slong (buf + 4, order, value.denominator); in exif_set_srational()
/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
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/pdfium/xfa/src/fxbarcode/common/
DBC_CommonPerspectiveTransform.cpp83 FX_FLOAT denominator = a13 * x + a23 * y + a33; in TransformPoints() local
84 (*points)[i] = (a11 * x + a21 * y + a31) / denominator; in TransformPoints()
85 (*points)[i + 1] = (a12 * x + a22 * y + a32) / denominator; in TransformPoints()
107 FX_FLOAT denominator = dx1 * dy2 - dx2 * dy1; in SquareToQuadrilateral() local
108 FX_FLOAT a13 = (dx3 * dy2 - dx2 * dy3) / denominator; in SquareToQuadrilateral()
109 FX_FLOAT a23 = (dx1 * dy3 - dx3 * dy1) / denominator; in SquareToQuadrilateral()
/external/libexif/libexif/fuji/
Dmnote-fuji-entry.c262 if (!vr.denominator) break; in mnote_fuji_entry_get_value()
264 vr.denominator); in mnote_fuji_entry_get_value()
286 if (!vr.denominator) break; in mnote_fuji_entry_get_value()
288 vr.denominator); in mnote_fuji_entry_get_value()
292 if (!vsr.denominator) break; in mnote_fuji_entry_get_value()
294 vsr.denominator); in mnote_fuji_entry_get_value()
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/interpolation/
DDividedDifferenceInterpolator.java105 final double denominator = x[j+i] - x[j]; in computeDividedDifference() local
106 if (denominator == 0.0) { in computeDividedDifference()
110 divdiff[j] = (divdiff[j+1] - divdiff[j]) / denominator; in computeDividedDifference()
/external/jhead/
Dexif.c468 unsigned int *denominator) { in float2urat() argument
471 *denominator = 1; in float2urat()
477 *denominator = 1; in float2urat()
486 *denominator = 1; in float2urat()
489 *denominator = max; in float2urat()
506 *denominator = d; in float2urat()
514 *denominator = 1; in float2urat()
518 unsigned int *denominator) { in ConvertDoubleToURational() argument
519 float2urat(value, 0xFFFFFFFFU, numerator, denominator); in ConvertDoubleToURational()
523 int *denominator) { in ConvertDoubleToSRational() argument
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNFSubstitution.java1436 private final double denominator; field in NumeratorSubstitution
1453 double denominator, in NumeratorSubstitution() argument
1461 this.denominator = denominator; in NumeratorSubstitution()
1484 return denominator == that2.denominator && withZeros == that2.withZeros; in equals()
1514 while ((nf *= 10) < denominator) { in doSubstitution()
1544 return Math.round(number * denominator); in transformNumber()
1553 return Math.round(number * denominator); in transformNumber()
1642 return denominator; in calcUpperBound()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DNFSubstitution.java1437 private final double denominator; field in NumeratorSubstitution
1454 double denominator, in NumeratorSubstitution() argument
1462 this.denominator = denominator; in NumeratorSubstitution()
1485 return denominator == that2.denominator && withZeros == that2.withZeros; in equals()
1515 while ((nf *= 10) < denominator) { in doSubstitution()
1545 return Math.round(number * denominator); in transformNumber()
1554 return Math.round(number * denominator); in transformNumber()
1643 return denominator; in calcUpperBound()
/external/apache-commons-math/src/main/java/org/apache/commons/math/analysis/solvers/
DMullerSolver.java369 final double denominator; in solve2() local
374 denominator = FastMath.abs(dplus) > FastMath.abs(dminus) ? dplus : dminus; in solve2()
377 denominator = FastMath.sqrt(b * b - delta); in solve2()
379 if (denominator != 0) { in solve2()
380 x = x2 - 2.0 * c * (x2 - x1) / denominator; in solve2()
/external/apache-commons-math/src/main/java/org/apache/commons/math/complex/
DComplex.java227 double denominator = c * q + d; in divide() local
228 return createComplex((real * q + imaginary) / denominator, in divide()
229 (imaginary * q - real) / denominator); in divide()
232 double denominator = d * q + c; in divide() local
233 return createComplex((imaginary * q + real) / denominator, in divide()
234 (imaginary - real * q) / denominator); in divide()
/external/webrtc/webrtc/modules/audio_coding/neteq/
Dstatistics_calculator.cc283 uint32_t denominator) { in CalculateQ14Ratio() argument
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/opencv3/modules/video/src/
Dbgfg_KNN.cpp404 float denominator = 0.0f; in _cvCheckPixelBackgroundNP() local
408 denominator += (float)mean_m[c] * mean_m[c]; in _cvCheckPixelBackgroundNP()
412 if( denominator == 0 ) in _cvCheckPixelBackgroundNP()
416 if( numerator <= denominator && numerator >= tau*denominator ) in _cvCheckPixelBackgroundNP()
418 float a = numerator / denominator; in _cvCheckPixelBackgroundNP()

123456