/external/v8/src/ |
bignum-dtoa.cc | 52 // Computes v / 10^estimated_power exactly, as a ratio of two bignums, numerator 57 Bignum* numerator, 61 // Multiplies numerator/denominator so that its values lies in the range 1-10. 63 // v = numerator'/denominator' * 10^(decimal_point-1) 64 // where numerator' and denominator' are the values of numerator and 68 Bignum* numerator, Bignum* denominator, 72 static void GenerateShortestDigits(Bignum* numerator, Bignum* denominator, 78 Bignum* numerator, Bignum* denominator, 80 // Generates 'count' digits of numerator/denominator 114 Bignum numerator; local [all...] |
/libcore/luni/src/main/java/java/util/ |
Grego.java | 181 public static long floorDivide(long numerator, long denominator) {
183 // a numerator of Long.MIN_VALUE correctly
184 return (numerator >= 0) ?
185 numerator / denominator :
186 ((numerator + 1) / denominator) - 1;
189 private static long floorDivide(long numerator, long denominator, long[] remainder) {
190 if (numerator >= 0) {
191 remainder[0] = numerator % denominator;
192 return numerator / denominator;
194 long quotient = ((numerator + 1) / denominator) - 1; [all...] |
/external/webkit/Source/WebCore/rendering/mathml/ |
RenderMathMLFraction.cpp | 64 RenderObject* numerator = firstChild(); local 67 numerator->style()->setTextAlign(LEFT); 69 numerator->style()->setTextAlign(RIGHT); 71 numerator->style()->setTextAlign(CENTER); 73 RenderObject* denominator = numerator->nextSibling(); 149 RenderMathMLBlock* numerator = toRenderMathMLBlock(firstChild()); local 150 if (numerator->isRenderMathMLRow()) 151 verticalOffset = numerator->offsetHeight() + adjustForThickness; 153 verticalOffset = numerator->offsetHeight(); 173 RenderMathMLBlock* numerator = toRenderMathMLBlock(firstChild()) local [all...] |
/external/icu4c/i18n/ |
gregoimp.h | 35 * @param numerator the numerator 39 static int32_t floorDivide(int32_t numerator, int32_t denominator); 46 * @param numerator the numerator 50 static inline double floorDivide(double numerator, double denominator); 57 * -1 with <code>remainder</code> => 3. NOTE: If numerator is 59 * @param numerator the numerator 62 * remainder. Unlike <code>numerator % denominator</code>, thi [all...] |
gregoimp.cpp | 27 int32_t ClockMath::floorDivide(int32_t numerator, int32_t denominator) { 28 return (numerator >= 0) ? 29 numerator / denominator : ((numerator + 1) / denominator) - 1; 32 int32_t ClockMath::floorDivide(double numerator, int32_t denominator, 35 quotient = uprv_floor(numerator / denominator); 36 remainder = (int32_t) (numerator - (quotient * denominator));
|
nfrs.cpp | 469 * same base value, the first one is used when the numerator of the 489 int64_t numerator; local 494 numerator = util64_fromDouble(number * (double)leastCommonMultiple + 0.5); 501 // "numerator" is the numerator of the fraction if the 502 // denominator is the LCD. The numerator if the rule's 503 // base value is the denominator is "numerator" times the 507 tempDifference = numerator * rules[i]->getBaseValue() % leastCommonMultiple; 511 // the numerator's distance from the CLOSEST multiple 532 // the numerator of the fraction is 1 and the second one is used i [all...] |
/external/webrtc/src/modules/audio_processing/aecm/main/matlab/matlab/ |
fallerEstimator.m | 8 % 3) Separated numerator and denomerator filters
|
/hardware/ti/omap4xxx/camera/ |
Encoder_libjpeg.cpp | 224 unsigned int numerator = 0; local 233 numerator = atoi(temp); 235 if (!numerator) 236 numerator = 1; 246 numerator = numerator * denominator + atoi(temp); 253 *num = numerator;
|
/hardware/ti/omap4xxx/camera/OMXCameraAdapter/ |
OMXExif.cpp | 320 unsigned int numerator = 0, denominator = 0; local 322 &numerator, &denominator); 323 if (numerator || denominator) { 324 exifTags->ulFocalLength[0] = (OMX_U32) numerator; 521 unsigned int numerator = 0, denominator = 0; local 523 &numerator, &denominator); 524 if (numerator || denominator) { 528 "%u/%u", numerator, denominator);
|
/external/webkit/Source/WebCore/platform/graphics/gpu/ |
LoopBlinnMathUtils.cpp | 326 // Divides the numerator by the denominator safely for the case where 329 bool safeUnitDivide(float numerator, float denominator, float& ratio) 331 if (numerator < 0) { 332 // Make the "numerator >= denominator" check below work. 333 numerator = -numerator; 336 if (!numerator || !denominator || numerator >= denominator) 338 float r = numerator / denominator; 342 if (!r) // catch underflow if numerator <<<< denominato [all...] |
/external/icu4c/test/intltest/ |
winnmtst.cpp | 98 int64_t numerator = randomInt64(); local 105 ran = (double)numerator / (double)denomenator;
|
/external/qemu/distrib/sdl-1.2.12/src/video/x11/ |
SDL_x11mouse.c | 189 The first number is the numerator, followed by the acceleration 255 &mouse_accel.numerator, 271 mouse_accel.numerator,
|
SDL_x11video.h | 97 int numerator; member in struct:SDL_PrivateVideoData::__anon9841
|
/external/qemu/distrib/sdl-1.2.12/src/video/Xext/extensions/ |
Xvlib.h | 61 int numerator; member in struct:__anon9679
|
/external/qemu/distrib/sdl-1.2.12/src/video/cybergfx/ |
SDL_cgxvideo.h | 76 int numerator; member in struct:SDL_PrivateVideoData::__anon9788
|
/external/webrtc/src/modules/audio_processing/ns/main/source/ |
nsx_core.c | 674 WebRtc_Word32 numerator; local 1860 WebRtc_UWord32 numerator = 0; local [all...] |
/frameworks/base/opengl/tests/hwc/ |
hwcCommit.cpp | 209 uint32_t numerator(void) { return _n; } function in class:Rational 211 void setNumerator(uint32_t numerator) { _n = numerator; } [all...] |
/frameworks/base/media/libstagefright/ |
OggExtractor.cpp | 669 size_t numerator = mTableOfContents.size(); local 671 if (numerator > kMaxNumTOCEntries) { 672 size_t denom = numerator - kMaxNumTOCEntries; 677 if (accum >= numerator) { 679 accum -= numerator;
|
/external/chromium/third_party/libjingle/source/talk/base/ |
network.cc | 400 double numerator = uniform_numerator_ + exp_shift * exponential_numerator_; local 407 quality_ = numerator / denominator;
|
/external/icu4c/common/ |
uchar.c | 407 int32_t numerator=(ntv>>4)-12; local 409 return (double)numerator/denominator;
|
/external/valgrind/main/exp-bbv/tests/arm-linux/ |
ll.S | 406 @ r3=numerator r4=denominator 415 cmp r5,r3 @ is it greater than numerator?
|
/external/jhead/ |
exif.c | 1145 unsigned int numerator = atoi(curElement); local 1154 int numerator = atoi(curElement); local [all...] |
/external/qemu/distrib/sdl-1.2.12/src/video/Xext/Xv/ |
Xv.c | 373 pe->rate.numerator = u.pe->rate.numerator;
|
/frameworks/base/core/java/com/android/internal/os/ |
ProcessStats.java | 740 private void printRatio(PrintWriter pw, long numerator, long denominator) { 741 long thousands = (numerator*1000)/denominator;
|
/frameworks/media/libvideoeditor/vss/src/ |
M4VSS3GPP_AudioMixing.c | 1447 M4OSA_UInt32 numerator, denominator, ratio, ratioBuffer; local [all...] |