/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Math/ |
H A D | 15.8.2.15.js | 24 ECMA Section: 15.8.2.15 Math.round(x) 39 Math.round( 3.5 ) == 4 40 Math.round( -3.5 ) == 3 42 - Math.round(x) == Math.floor( x + 0.5 ) 43 except if x = -0. in that case, Math.round(x) = -0 55 var TITLE = "Math.round(x)"; 69 array[item++] = new TestCase( SECTION, "Math.round.length", 1, Math.round.length ); 71 array[item++] = new TestCase( SECTION, "Math.round()", Number.NaN, Math.round() ); [all...] |
/external/webkit/Source/WebCore/platform/mac/ |
H A D | ThreadCheck.mm | 65 void setDefaultThreadViolationBehavior(ThreadViolationBehavior behavior, ThreadViolationRound round) 67 ASSERT(round < MaximumThreadViolationRound); 68 if (round >= MaximumThreadViolationRound) 73 threadViolationBehavior[round] = behavior; 76 void reportThreadViolation(const char* function, ThreadViolationRound round) 78 ASSERT(round < MaximumThreadViolationRound); 79 if (round >= MaximumThreadViolationRound) 83 if (threadViolationBehavior[round] == NoThreadCheck) 87 WebCoreReportThreadViolation(function, round); 93 void WebCoreReportThreadViolation(const char* function, WebCore::ThreadViolationRound round) [all...] |
/external/v8/test/mjsunit/regress/ |
H A D | regress-3218530.js | 36 assertDoesNotThrow(assertEquals(m[p](Math.round(bignumber/864E5)/7)+1, 52));
|
/external/compiler-rt/lib/ |
H A D | floatunsisf.c | 11 // compiler-rt library in the IEEE-754 default round-to-nearest, ties-to-even 41 rep_t round = (rep_t)a << (typeWidth - shift); local 42 if (round > signBit) result++; 43 if (round == signBit) result += result & 1;
|
H A D | floatsisf.c | 11 // compiler-rt library in the IEEE-754 default round-to-nearest, ties-to-even 49 rep_t round = (rep_t)a << (typeWidth - shift); local 50 if (round > signBit) result++; 51 if (round == signBit) result += result & 1;
|
H A D | divdf3.c | 168 // code to round them correctly. 173 const bool round = (residual << 1) > bSignificand; local 179 absResult += round;
|
/external/jmonkeyengine/engine/src/desktop/jme3tools/navigation/ |
H A D | NumUtil.java | 27 float tmp = Math.round(Rval);
|
/external/v8/test/mjsunit/compiler/ |
H A D | regress-106351.js | 30 // Test Math.round with the input reused in the same expression. 32 var v = Math.round(x) - x;
|
/external/libvpx/vp8/encoder/arm/ |
H A D | quantize_arm.c | 31 d->eob = vp8_fast_quantize_b_neon_func(b->coeff, b->zbin, d->qcoeff, d->dqcoeff, d->dequant, vp8_rvsplus1_default_zig_zag1d, b->round, b->quant_fast);
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/heightmap/ |
H A D | HillHeightMap.java | 172 int xMin = Math.round(x - radius - 1);
173 int xMax = Math.round(x + radius + 1);
175 int yMin = Math.round(y - radius - 1);
176 int yMax = Math.round(y + radius + 1);
|
/external/srec/audio/AudioIn/UNIX/include/ |
H A D | filter.h | 45 typeAccum round; // used for roundoff member in struct:fir_struct
|
/external/icu4c/test/intltest/ |
H A D | dcfmtest.cpp | 368 const UnicodeString &round, // rounding mode 384 if (round=="ceiling") { 386 } else if (round=="floor") { 388 } else if (round=="down") { 390 } else if (round=="up") { 392 } else if (round=="halfeven") { 394 } else if (round=="halfdown") { 396 } else if (round=="halfup") { 398 } else if (round=="default") { 400 } else if (round 366 execFormatTest(int32_t lineNum, const UnicodeString &pattern, const UnicodeString &round, const UnicodeString &input, const UnicodeString &expected, UErrorCode &status) argument [all...] |
H A D | dcfmtest.h | 46 const UnicodeString &round,
|
/external/openssl/crypto/aes/asm/ |
H A D | vpaes-x86.pl | 57 my ($round, $base, $magic, $key, $const, $inp, $out)= 182 &mov ($round,&DWP(240,$key)); 200 # middle of middle round 224 &sub ($round,1); # nr-- 227 # top of round 250 # middle of last round 268 &mov ($round,&DWP(240,$key)); 273 &mov ($magic,$round); 300 &add ($key,16); # next round key 309 &sub ($round, [all...] |
/external/apache-xml/src/main/java/org/apache/xpath/functions/ |
H A D | FuncSubstring.java | 70 start = Math.round(start); 77 int end = (int) (Math.round(len) + start) - 1;
|
/external/jmonkeyengine/engine/src/terrain/com/jme3/terrain/geomipmap/grid/ |
H A D | AssetTileLoader.java | 42 String modelName = assetPath + "/" + name + "_" + Math.round(location.x) + "_" + Math.round(location.y) + "_" + Math.round(location.z) + ".j3o";
|
/external/v8/test/mjsunit/ |
H A D | string-case.js | 56 var c = Math.round(0x7f * Math.random());
|
/external/clang/test/CodeGen/ |
H A D | libcall-declarations.c | 62 double round(double); 85 rint, rintl, rintf, round, roundl, roundf, sin, sinl, sinf, sqrt, sqrtl, 146 // CHECK-NOERRNO: declare double @round(double) nounwind readnone 186 // CHECK-ERRNO: declare double @round(double) nounwind readnone
|
/external/bluetooth/bluedroid/stack/smp/ |
H A D | smp_cmac.c | 39 UINT16 round; member in struct:__anon1444 144 while (i <= cmac_cb.round) 146 smp_xor_128(&cmac_cb.text[(cmac_cb.round - i)*BT_OCTET16_LEN], x); /* Mi' := Mi (+) X */ 148 if (!SMP_Encrypt(key, BT_OCTET16_LEN, &cmac_cb.text[(cmac_cb.round - i)*BT_OCTET16_LEN], BT_OCTET16_LEN, &output)) 194 SMP_TRACE_WARNING2("flag = %d round = %d", flag, cmac_cb.round); 310 cmac_cb.round = n;
|
/external/icu4c/i18n/ |
H A D | decContext.c | 34 /* round-for-reround digits */ 77 context->round=DEC_ROUND_HALF_UP; /* 0.5 rises */ 92 context->round=DEC_ROUND_HALF_EVEN; /* 0.5 to nearest even */ 103 context->round=DEC_ROUND_HALF_EVEN; /* 0.5 to nearest even */ 114 context->round=DEC_ROUND_HALF_EVEN; /* 0.5 to nearest even */ 138 return context->round; 197 context->round=newround;
|
/external/libvpx/vp8/encoder/ |
H A D | quantize.c | 28 short *round_ptr = b->round; 74 short *round_ptr = b->round; 113 short *round_ptr = b->round; 186 int round; local 192 round = dq >> 1; 196 x += round; 225 short *round_ptr = b->round;
|
/external/v8/tools/ |
H A D | generate-ten-powers.scm | 56 (define (round-n-cut n e nb-bits) 58 (define (round n) 59 (case *round* 63 ;; with the -1 it will only round up if the cut off part is 68 ((round) 73 (cut (bit-rshbx (round n) shift)) 77 (round-n-cut n (+fx e 1) nb-bits)))) 80 (case *round* 83 ((round) (let ((tmp (/bx (*bx #z2 x) y))) 126 (round [all...] |
/external/srec/audio/AudioIn/UNIX/src/ |
H A D | filter.c | 45 /* bRounded = round(b*2^15); */ 106 pFIR->round = (1 << (scale-1)); 283 accum += pFIR->round; 285 accum -= pFIR->round;
|
/external/webkit/Source/WebCore/inspector/front-end/ |
H A D | Color.js | 223 h = Math.round(h); 224 s = Math.round(s*100); 225 l = Math.round(l*100); 247 var r = Math.round(hueToRGB(p, q, tr) * 255); 248 var g = Math.round(hueToRGB(p, q, tg) * 255); 249 var b = Math.round(hueToRGB(p, q, tb) * 255);
|
H A D | SummaryBar.js | 151 var percents = segments.map(function(s) { return Math.max(Math.round(100 * s.value / total), 1) }); 249 var segmentWidth = Math.round(w * percents[i] / 100); 259 ctx.moveTo(x + (i * Math.round(w / 20)) + 0.5, y); 260 ctx.lineTo(x + (i * Math.round(w / 20)) + 0.5, y + h); 267 ctx.moveTo(x + (i * Math.round(w / 20)) + 1.5, y); 268 ctx.lineTo(x + (i * Math.round(w / 20)) + 1.5, y + h);
|