/external/v8/test/mjsunit/regress/ |
H A D | regress-2451.js | 31 assertEquals(-1.0, Math.round(-1.5)); 32 assertEquals(-2.0, Math.round(-2.5)); 33 assertEquals(-1.0, Math.round(-0.5000000000000001));
|
H A D | regress-3218530.js | 36 assertDoesNotThrow(assertEquals(m[p](Math.round(bignumber/864E5)/7)+1, 52));
|
H A D | regress-351624.js | 13 var rounded = Math.round(prod);
|
H A D | regress-smi-math-floor-round.js | 52 return Math.round(o.x_smi) + 1; 61 return Math.round(o.x_tagged) + 1;
|
/external/valgrind/none/tests/s390x/ |
H A D | fpext.c | 6 #define L2F(insn, initial, target,round) \ 10 asm volatile(insn(round,0,0,2) :"=f" (_t):"d"(source)); \ 14 #define F2L(insn, initial, type, round, cc) \ 18 asm volatile(insn(round,0,2,0) \ 26 #define DO_INSN_L2F32(insn, round) \ 29 printf(#insn " %f\n", L2F(insn, 0, f32, round)); \ 30 printf(#insn " %f\n", L2F(insn, 1, f32, round)); \ 31 printf(#insn " %f\n", L2F(insn, 0xffffffffUL, f32, round)); \ 32 printf(#insn " %f\n", L2F(insn, 0x80000000UL, f32, round)); \ 33 printf(#insn " %f\n", L2F(insn, 0x7fffffffUL, f32, round)); \ [all...] |
H A D | dfpext.c | 7 #define L2D(insn, initial, target,round) \ 11 asm volatile(insn(round,0,0,2) :"=f" (_t):"d"(source)); \ 15 #define I2D(insn, initial, target,round) \ 19 asm volatile(insn(round,0,0,2) :"=f" (_t):"d"(source)); \ 23 #define D2L(insn, initial, type, round, cc) \ 27 asm volatile(insn(round,0,2,0) \ 34 #define D2I(insn, initial, type, round, cc) \ 38 asm volatile(insn(round,0,2,0) \ 46 #define DO_PRINT_L2D(insn, l, d, round) \ 48 printf(#insn " round [all...] |
H A D | rounding-1.c | 11 rtext(unsigned round) argument 13 switch (round) { 26 #define convert_to_int(opcode,src_type,dst_type,dst_fmt,round,value) \ 32 __asm__ volatile (opcode " %[dst]," #round ",%[src]\n\t" \ 40 opcode, rtext(round), src, dst, cc); \ 44 #define cfdbr(round,value) \ 45 convert_to_int("cfdbr",double,int32_t,PRId32,round,value) 55 cfdbr(4, dval); // round to nearest with ties to even 56 cfdbr(5, dval); // round to zero 57 cfdbr(6, dval); // round t [all...] |
H A D | dfpconv.c | 7 #define I2D(insn, initial, target,round) \ 11 asm volatile(insn(round,0,0,2) :"=f" (_t):"d"(source)); \ 15 #define D2I(insn, initial, type, round, cc) \ 19 asm volatile(insn(round,0,2,0) \ 27 #define DO_PRINT_I2D(insn, l, d, round) \ 29 printf(#insn " round=%d %d -> ", 0x##round, l); \ 30 d = I2D(insn, l, d, round); \ 35 #define DO_INSN_I2D(insn, round, type) \ 38 DO_PRINT_I2D(insn, 0, d, round); \ [all...] |
H A D | rounding-6.c | 11 IRRoundingMode. As a consequence m3=1 which is "round to nearest with 30 #define convert_to_int(opcode,src_type,dst_type,dst_fmt,round,value) \ 36 __asm__ volatile (opcode " %[dst]," #round ",%[src]\n\t" \ 44 opcode, src, dst, cc, rtext(round)); \ 48 #define cfebr(value, round) \ 49 convert_to_int("cfebr",float,int32_t,PRId32,round,value) 50 #define cfdbr(value, round) \ 51 convert_to_int("cfdbr",double,int32_t,PRId32,round,value) 52 #define cgebr(value, round) \ 53 convert_to_int("cgebr",float,int64_t,PRId64,round,valu [all...] |
H A D | srnmb.stderr.exp | 4 Continuing using 'round to nearest'. Results may differ!
|
/external/jmonkeyengine/engine/src/desktop/jme3tools/navigation/ |
H A D | NumUtil.java | 27 float tmp = Math.round(Rval);
|
/external/libvpx/libvpx/vpx_dsp/ |
H A D | fwd_txfm.h | 24 void vpx_fdct32(const tran_high_t *input, tran_high_t *output, int round);
|
/external/libvpx/libvpx/vpx_ports/ |
H A D | msvc.h | 21 #if _MSC_VER < 1800 // VS2013 provides round 23 static INLINE double round(double x) { function
|
/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/skia/src/core/ |
H A D | SkTDynamicHash.h | 92 for (int round = 0; round < fCapacity; round++) { 101 index = this->nextIndex(index, round); 146 for (int round = 0; round < fCapacity; round++) { 150 return round; 152 index = this->nextIndex(index, round); 210 for (int round [all...] |
/external/compiler-rt/lib/builtins/ |
H A D | floatsisf.c | 11 // compiler-rt library in the IEEE-754 default round-to-nearest, ties-to-even 50 rep_t round = (rep_t)a << (typeWidth - shift); local 51 if (round > signBit) result++; 52 if (round == signBit) result += result & 1;
|
H A D | floatunsisf.c | 11 // compiler-rt library in the IEEE-754 default round-to-nearest, ties-to-even 42 rep_t round = (rep_t)a << (typeWidth - shift); local 43 if (round > signBit) result++; 44 if (round == signBit) result += result & 1;
|
/external/skia/src/opts/ |
H A D | SkPMFloat_neon.h | 11 // round() and roundClamp() do the opposite, working from floats to 8-bit-in-32-bit, 33 inline SkPMColor SkPMFloat::round() const { function in class:SkPMFloat 39 uint32x4_t fix8_32 = vcvtq_u32_f32(add_half); // vcvtq_u32_f32 truncates, so round manually 59 colors[0] = a.round(); 60 colors[1] = b.round(); 61 colors[2] = c.round(); 62 colors[3] = d.round();
|
H A D | SkPMFloat_SSSE3.h | 11 // round() does the opposite, working from floats to 8-bit-in-32-bits, then back to packed 8 bit. 34 inline SkPMColor SkPMFloat::round() const { function in class:SkPMFloat 61 colors[0] = a.round(); 62 colors[1] = b.round(); 63 colors[2] = c.round(); 64 colors[3] = d.round();
|
H A D | SkPMFloat_none.h | 20 inline SkPMColor SkPMFloat::round() const { function in class:SkPMFloat 51 colors[0] = a.round(); 52 colors[1] = b.round(); 53 colors[2] = c.round(); 54 colors[3] = d.round();
|
/external/valgrind/none/tests/mips64/ |
H A D | fpu_arithmetic.c | 45 flt_art_op_names[op], round(fd_d), fs_d[i], ft_d[i]); 55 flt_art_op_names[op], round(fd_d), fs_d[i], ft_d[i]); 73 flt_art_op_names[op], round(fd_d), fs_d[i]); 93 flt_art_op_names[op], round(fd_d), fs_d[i]); 106 flt_art_op_names[op], round(fd_d), fs_d[i]); 116 printf("%s %lf %lf %lf %lf\n", flt_art_op_names[op], round(fd_d), 126 printf("%s %lf %lf %lf %lf\n", flt_art_op_names[op], round(fd_d), 136 printf("%s %lf %lf %lf %lf\n", flt_art_op_names[op], round(fd_d), 147 round(fd_d), fr_d[i], fs_d[i],
|
/external/skia/bench/ |
H A D | BigPathBench.cpp | 33 BigPathBench(Align align, bool round) : fAlign(align), fRound(round) { argument 35 if (round) {
|
/external/parameter-framework/test/functional-tests/PfwTestCase/Types/ |
H A D | tFP32_Q0_31.py | 97 assert round(float(out),10) == round(float(value),10), log.F("BLACKBOARD : Incorrect value for %s, expected: %s, found: %s" 132 assert round(float(out),10) == round(float(value),10), log.F("BLACKBOARD : Incorrect value for %s, expected: %s, found: %s" 199 assert round(float(out),10) == round(float(value),10), log.F("BLACKBOARD : Incorrect value for %s, expected: %s, found: %s"
|
/external/v8/test/mjsunit/es6/ |
H A D | math-fround.js | 76 var round = this.mantissa_29_bits >> 28; 77 var mantissa = 1 + (this.mantissa_23_bits + round) * mantissa_23_shift; 86 var round = ((mantissa_23_bits & round_mask) != 0) | 0; 87 if (round) { // Round to even if tied. 93 if (tied && result_already_even) round = 0; 96 var mantissa = (mantissa_23_bits + round) * mantissa_23_shift;
|
/external/valgrind/none/tests/mips32/ |
H A D | round_fpu64.stdout.exp | 395 round.l.s 0 0.000000 397 round.l.s 456 456.250000 399 round.l.s 3 3.000000 401 round.l.s -1 -1.000000 403 round.l.s 1384 1384.500000 405 round.l.s -7 -7.250000 407 round.l.s 1000000000 1000000000.000000 409 round.l.s -5786 -5786.250000 411 round.l.s 1752 1752.000000 413 round [all...] |