Home
last modified time | relevance | path

Searched refs:round (Results 1 – 25 of 288) sorted by relevance

12345678910>>...12

/external/v8/test/mjsunit/
Dmath-round.js28 assertEquals(0, Math.round(0));
29 assertEquals(-0, Math.round(-0));
30 assertEquals(Infinity, Math.round(Infinity));
31 assertEquals(-Infinity, Math.round(-Infinity));
32 assertNaN(Math.round(NaN));
34 assertEquals(1, Math.round(0.5));
35 assertEquals(1, Math.round(0.7));
36 assertEquals(1, Math.round(1));
37 assertEquals(1, Math.round(1.1));
38 assertEquals(1, Math.round(1.49999));
[all …]
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma/Math/
D15.8.2.15.js69 …array[item++] = new TestCase( SECTION, "Math.round.length", 1, Math.round.length …
71 array[item++] = new TestCase( SECTION, "Math.round()", Number.NaN, Math.round() );
72 array[item++] = new TestCase( SECTION, "Math.round(null)", 0, Math.round(0) );
73 …array[item++] = new TestCase( SECTION, "Math.round(void 0)", Number.NaN, Math.round(void 0)…
74 …array[item++] = new TestCase( SECTION, "Math.round(true)", 1, Math.round(true) );
75 …array[item++] = new TestCase( SECTION, "Math.round(false)", 0, Math.round(false) …
76 …array[item++] = new TestCase( SECTION, "Math.round('.99999')", 1, Math.round('.9999…
77 …array[item++] = new TestCase( SECTION, "Math.round('12345e-2')", 123, Math.round('12345…
79 …array[item++] = new TestCase( SECTION, "Math.round(NaN)", Number.NaN, Math.round(Number.…
80 array[item++] = new TestCase( SECTION, "Math.round(0)", 0, Math.round(0) );
[all …]
/external/webkit/Source/WebCore/platform/mac/
DThreadCheck.mm65 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/icu4c/test/intltest/
Ddcfmtest.cpp368 const UnicodeString &round, // rounding mode in execFormatTest() argument
384 if (round=="ceiling") { in execFormatTest()
386 } else if (round=="floor") { in execFormatTest()
388 } else if (round=="down") { in execFormatTest()
390 } else if (round=="up") { in execFormatTest()
392 } else if (round=="halfeven") { in execFormatTest()
394 } else if (round=="halfdown") { in execFormatTest()
396 } else if (round=="halfup") { in execFormatTest()
398 } else if (round=="default") { in execFormatTest()
403 lineNum, UnicodeStringPiece(round).data()); in execFormatTest()
/external/valgrind/main/none/tests/ppc64/
DMakefile.am12 round.stderr.exp round.stdout.exp round.vgtest \
19 jm-insns lsw round std_reg_imm twi_tdi tw_td power6_bcmp power6_mf_gpr program
DMakefile.in49 check_PROGRAMS = jm-insns$(EXEEXT) lsw$(EXEEXT) round$(EXEEXT) \
75 round_SOURCES = round.c
76 round_OBJECTS = round.$(OBJEXT)
96 SOURCES = jm-insns.c lsw.c power6_bcmp.c power6_mf_gpr.c round.c \
98 DIST_SOURCES = jm-insns.c lsw.c power6_bcmp.c power6_mf_gpr.c round.c \
388 round.stderr.exp round.stdout.exp round.vgtest \
448 round$(EXEEXT): $(round_OBJECTS) $(round_DEPENDENCIES)
449 @rm -f round$(EXEEXT)
471 @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/round.Po@am__quote@
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/engines/
DDESEngine.java437 for (int round = 0; round < 8; round++) in desFunc()
442 work ^= wKey[round * 4 + 0]; in desFunc()
447 work = right ^ wKey[round * 4 + 1]; in desFunc()
454 work ^= wKey[round * 4 + 2]; in desFunc()
459 work = left ^ wKey[round * 4 + 3]; in desFunc()
/external/webkit/LayoutTests/fast/xpath/py-dom-xpath/
Dfunctions-expected.txt72 PASS round(1.5)
73 PASS round(-1.5)
74 PASS string(round(0 div 0))
75 PASS round(1 div 0)
76 PASS round(-1 div 0)
/external/libvpx/vp8/encoder/
Dquantize.c28 short *round_ptr = b->round; in vp8_fast_quantize_b_c()
74 short *round_ptr = b->round; in vp8_fast_quantize_b_c()
113 short *round_ptr = b->round; in vp8_regular_quantize_b()
186 int round; in vp8_strict_quantize_b() local
192 round = dq >> 1; in vp8_strict_quantize_b()
196 x += round; in vp8_strict_quantize_b()
225 short *round_ptr = b->round; in vp8_regular_quantize_b()
/external/openssl/crypto/sha/asm/
Dsha512-x86_64.pl83 $round="%rdi"; # zaps $ctx
125 add ($Tbl,$round,$SZ),$T1 # T1+=K[round]
139 lea 1($round),$round # round++
218 xor $round,$round
237 cmp \$$rounds,$round
/external/valgrind/main/none/tests/ppc32/
DMakefile.am18 round.stderr.exp round.stdout.exp round.vgtest \
31 ldstrev lsw jm-insns mftocrf mcrfs round test_fx test_gx \ program
/external/webkit/Source/WebCore/inspector/front-end/
DColor.js223 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);
DSummaryBar.js151 …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);
/external/icu4c/i18n/
DdecContext.c77 context->round=DEC_ROUND_HALF_UP; /* 0.5 rises */ in uprv_decContextDefault()
92 context->round=DEC_ROUND_HALF_EVEN; /* 0.5 to nearest even */ in uprv_decContextDefault()
103 context->round=DEC_ROUND_HALF_EVEN; /* 0.5 to nearest even */ in uprv_decContextDefault()
114 context->round=DEC_ROUND_HALF_EVEN; /* 0.5 to nearest even */ in uprv_decContextDefault()
138 return context->round; in uprv_decContextGetRounding()
197 context->round=newround; in uprv_decContextSetRounding()
/external/dropbear/libtomcrypt/src/ciphers/safer/
Dsafer.c258 unsigned int round; in _safer_ecb_encrypt() local
268 if (SAFER_MAX_NOF_ROUNDS < (round = *key)) round = SAFER_MAX_NOF_ROUNDS; in _safer_ecb_encrypt()
269 while(round-- > 0) in _safer_ecb_encrypt()
312 unsigned int round; in _safer_ecb_decrypt() local
322 if (SAFER_MAX_NOF_ROUNDS < (round = *key)) round = SAFER_MAX_NOF_ROUNDS; in _safer_ecb_decrypt()
323 key += SAFER_BLOCK_LEN * (1 + 2 * round); in _safer_ecb_decrypt()
326 while (round--) in _safer_ecb_decrypt()
/external/iproute2/ip/
Dipneigh.c382 int round = 0; in do_show_or_flush() local
390 while (round < MAX_ROUNDS) { in do_show_or_flush()
402 if (round == 0) in do_show_or_flush()
405 printf("*** Flush is complete after %d round%s ***\n", round, round>1?"s":""); in do_show_or_flush()
410 round++; in do_show_or_flush()
414 printf("\n*** Round %d, deleting %d entries ***\n", round, filter.flushed); in do_show_or_flush()
/external/v8/tools/
Dgenerate-ten-powers.scm58 (define (round n)
68 ((round)
73 (cut (bit-rshbx (round n) shift))
83 ((round) (let ((tmp (/bx (*bx #z2 x) y)))
268 (when (not (memv *round* '(up down round)))
/external/qemu/
Dd3des.c325 register int round; in desfunc() local
347 for( round = 0; round < 8; round++ ) { in desfunc()
/external/valgrind/unittest/
Dbigtest.cc224 inline double round(double lf) { in round() function
278 params.NUM_CONTEXTS = round(params.num_contexts); in ApplyParameters101()
281 params.NUM_ITERATIONS = round(params.num_iterations_times_runcount / map_of_counts[101]); in ApplyParameters101()
513 params.DATA_SIZE = 1 + round(params.data_size_times_runcount / params.EstimateRuncount()); in ApplyParameters311()
517 params.NUM_CONTEXTS = round(params.num_contexts); in ApplyParameters311()
654 int count = round(it->second / nThreads); in PatternDispatcher()
692 nThreads = round(nThreads_double); in Applier()
/external/srec/audio/AudioIn/UNIX/src/
Dfilter.c106 pFIR->round = (1 << (scale-1)); in FIR_construct()
283 accum += pFIR->round; in FIR_downsample()
285 accum -= pFIR->round; in FIR_downsample()
/external/apache-xml/src/main/java/org/apache/xpath/functions/
DFuncSubstring.java70 start = Math.round(start); in execute()
77 int end = (int) (Math.round(len) + start) - 1; in execute()
/external/openssl/crypto/des/asm/
Ddes_enc.m4131 ! Loads key first round from address in parameter 5 to out0, out1.
139 ! parameter 3 result left (modify in first round)
140 ! parameter 4 result right (use in first round)
263 ! the previous round is finished.
265 ! In each round one half (work) is modified based on key and the
283 ! each round, except after last round. In this code the original
288 ! parameter 1 first work (left in first round)
289 ! parameter 2 first use (right in first round)
325 ld [$5+$3*8], local7 ! key 7531 next round
366 ld [$5+$3*8+4], out0 ! key 8642 next round
[all …]
/external/webkit/LayoutTests/fast/xpath/4XPath/Core/
Dtest_core_functions-expected.txt62 PASS DOM.evaluate("round(3.14)", CHILD1, null, XPathResult.ANY_TYPE, null).numberValue is 3
63 PASS DOM.evaluate("round(-4.5)", CHILD1, null, XPathResult.ANY_TYPE, null).numberValue is -4
64 PASS DOM.evaluate("round(number('NaN'))", CHILD1, null, XPathResult.ANY_TYPE, null).numberValue is …
65 PASS DOM.evaluate("round(1 div 0)", CHILD1, null, XPathResult.ANY_TYPE, null).numberValue is Infini…
66 PASS DOM.evaluate("round(-1 div 0)", CHILD1, null, XPathResult.ANY_TYPE, null).numberValue is -Infi…
67 PASS DOM.evaluate("round('12345')", CHILD1, null, XPathResult.ANY_TYPE, null).numberValue is 12345
/external/skia/src/animator/
DSkDisplayMath.cpp68 SK_FUNCTION(round),
140 SK_MEMBER_FUNCTION(round, Float),
214 case SK_FUNCTION(round): in executeFunction()
/external/chromium/chrome/browser/resources/
Dkeyboard_overlay.js361 var x = Math.round((array[1] + offsetX) * multiplier);
362 var y = Math.round((array[2] + offsetY) * multiplier);
363 var w = Math.round((array[3] - keyMargin) * multiplier);
364 var h = Math.round((array[4] - keyMargin) * multiplier);

12345678910>>...12