Home
last modified time | relevance | path

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

123

/external/v8/src/
Dbignum-dtoa.cc61 Bignum* denominator,
71 Bignum* numerator, Bignum* denominator,
75 static void GenerateShortestDigits(Bignum* numerator, Bignum* denominator,
81 Bignum* numerator, Bignum* denominator,
88 Bignum* numerator, Bignum* denominator,
118 Bignum denominator; in BignumDtoa() local
128 &numerator, &denominator, in BignumDtoa()
132 &numerator, &denominator, in BignumDtoa()
138 GenerateShortestDigits(&numerator, &denominator, in BignumDtoa()
144 &numerator, &denominator, in BignumDtoa()
[all …]
/external/chromium_org/third_party/WebKit/Source/wtf/dtoa/
Dbignum-dtoa.cc60 Bignum* denominator,
70 Bignum* numerator, Bignum* denominator,
74 static void GenerateShortestDigits(Bignum* numerator, Bignum* denominator,
80 Bignum* numerator, Bignum* denominator,
87 Bignum* numerator, Bignum* denominator,
117 Bignum denominator; in BignumDtoa() local
127 &numerator, &denominator, in BignumDtoa()
131 &numerator, &denominator, in BignumDtoa()
137 GenerateShortestDigits(&numerator, &denominator, in BignumDtoa()
143 &numerator, &denominator, in BignumDtoa()
[all …]
/external/chromium_org/v8/src/
Dbignum-dtoa.cc61 Bignum* denominator,
71 Bignum* numerator, Bignum* denominator,
75 static void GenerateShortestDigits(Bignum* numerator, Bignum* denominator,
81 Bignum* numerator, Bignum* denominator,
88 Bignum* numerator, Bignum* denominator,
118 Bignum denominator; in BignumDtoa() local
128 &numerator, &denominator, in BignumDtoa()
132 &numerator, &denominator, in BignumDtoa()
138 GenerateShortestDigits(&numerator, &denominator, in BignumDtoa()
144 &numerator, &denominator, in BignumDtoa()
[all …]
/external/chromium_org/third_party/icu/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()
Dnfsubs.cpp248 double denominator; member in NumeratorSubstitution
265 …: NFSubstitution(_pos, _ruleSet, formatter, fixdesc(description), status), denominator(_denominato… in NumeratorSubstitution()
267 ldenominator = util64_fromDouble(denominator); in NumeratorSubstitution()
274 virtual double transformNumber(double number) const { return uprv_round(number * denominator); } in transformNumber()
286 virtual double calcUpperBound(double /*oldUpperBound*/) const { return denominator; } in calcUpperBound()
1197 while ((nf *= 10) < denominator) { in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
1300 denominator == ((const NumeratorSubstitution*)&rhs)->denominator; in operator ==()
/external/icu4c/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()
Dnfsubs.cpp268 double denominator; member in NumeratorSubstitution
285 …: NFSubstitution(_pos, _ruleSet, formatter, fixdesc(description), status), denominator(_denominato… in NumeratorSubstitution()
287 ldenominator = util64_fromDouble(denominator); in NumeratorSubstitution()
295 virtual double transformNumber(double number) const { return uprv_round(number * denominator); } in transformNumber()
307 virtual double calcUpperBound(double /*oldUpperBound*/) const { return denominator; } in calcUpperBound()
1244 while ((nf *= 10) < denominator) { in UOBJECT_DEFINE_RTTI_IMPLEMENTATION()
1347 denominator == ((const NumeratorSubstitution*)&rhs)->denominator; in operator ==()
/external/chromium_org/tools/perf/metrics/
Dstatistics.py131 def ArithmeticMean(numerator, denominator): argument
145 denominator_total = Total(denominator)
162 def DivideIfPossibleOrZero(numerator, denominator): argument
164 if not denominator:
167 return numerator / denominator
/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()
Dexif-utils.h60 typedef struct {ExifLong numerator; ExifLong denominator;} ExifRational; member
65 typedef struct {ExifSLong numerator; ExifSLong denominator;} ExifSRational; member
/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/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/chromium_org/ui/gl/
Dsync_control_vsync_provider.cc105 int32 numerator, denominator; in GetVSyncParameters() local
106 if (GetMscRate(&numerator, &denominator)) { in GetVSyncParameters()
107 last_computed_intervals_.push(base::TimeDelta::FromSeconds(denominator) / in GetVSyncParameters()
Dsync_control_vsync_provider.h28 virtual bool GetMscRate(int32* numerator, int32* denominator) = 0;
/external/chromium_org/third_party/WebKit/Source/platform/geometry/
DFloatPolygon.cpp235 float denominator = determinant(thisDelta, otherDelta); in intersection() local
236 if (!denominator) in intersection()
244 float uThisLine = determinant(otherDelta, vertex1Delta) / denominator; in intersection()
245 float uOtherLine = determinant(thisDelta, vertex1Delta) / denominator; in intersection()
/external/libyuv/files/source/
Dmjpeg_decoder.cc169 static int DivideAndRoundUp(int numerator, int denominator) { in DivideAndRoundUp() argument
170 return (numerator + denominator - 1) / denominator; in DivideAndRoundUp()
173 static int DivideAndRoundDown(int numerator, int denominator) { in DivideAndRoundDown() argument
174 return numerator / denominator; in DivideAndRoundDown()
/external/libexif/libexif/olympus/
Dmnote-olympus-entry.c79 #define R2L(n) ((n).denominator ? (long)(n).numerator/(n).denominator : 0L)
80 #define R2D(n) ((n).denominator ? (double)(n).numerator/(n).denominator : 0.0)
387 if (!vr.numerator || !vr.denominator) { in mnote_olympus_entry_get_value()
456 if (!vr.numerator || !vr.denominator) { in mnote_olympus_entry_get_value()
688 if (!vr.numerator || !vr.denominator) { in mnote_olympus_entry_get_value()
692 unsigned long tmp = vr.numerator / vr.denominator; in mnote_olympus_entry_get_value()
796 if (!vr.denominator) { in mnote_olympus_entry_get_value()
806 if (!vsr.denominator) { in mnote_olympus_entry_get_value()
/external/llvm/test/Transforms/LICM/
Dspeculate.ll3 ; UDiv is safe to speculate if the denominator is known non-zero.
36 ; UDiv is unsafe to speculate if the denominator is not known non-zero.
68 ; SDiv is safe to speculate if the denominator is known non-zero and
103 ; SDiv is unsafe to speculate if the denominator is not known non-zero.
136 ; SDiv is unsafe to speculate if the denominator is not known to have a zero bit.
/external/jmonkeyengine/engine/src/core/com/jme3/math/
DRay.java369 float denominator = p.getNormal().dot(direction); in intersectsWherePlane() local
371 if (denominator > -FastMath.FLT_EPSILON && denominator < FastMath.FLT_EPSILON) { in intersectsWherePlane()
375 float ratio = numerator / denominator; in intersectsWherePlane()
/external/chromium_org/media/video/capture/
Dfile_video_capture_device.cc36 int* denominator) { in ParseY4MRational() argument
40 *denominator = ParseY4MInt(token.substr(index_divider + 1, token.length())); in ParseY4MRational()
41 CHECK(*denominator); in ParseY4MRational()
/external/chromium_org/media/video/capture/win/
Dvideo_capture_device_mf_win.cc108 UINT32 numerator, denominator; in GetFrameRate() local
110 &denominator))|| in GetFrameRate()
111 !denominator) { in GetFrameRate()
115 *frame_rate_denominator = denominator; in GetFrameRate()
/external/chromium_org/base/metrics/
Dhistogram.cc329 double denominator = ranges(i + 1) - ranges(i); in GetBucketSize() local
330 if (denominator > kTransitionWidth) in GetBucketSize()
331 denominator = kTransitionWidth; // Stop trying to normalize. in GetBucketSize()
332 return current/denominator; in GetBucketSize()
589 double denominator = ranges(i + 1) - ranges(i); in GetBucketSize() local
590 return current/denominator; in GetBucketSize()

123