Searched defs:round (Results 1 - 25 of 135) sorted by relevance

123456

/external/libvpx/libvpx/vpx_ports/
H A Dmsvc.h21 #if _MSC_VER < 1800 // VS2013 provides round
23 static INLINE double round(double x) { function
/external/compiler-rt/lib/builtins/
H A Dfloatsisf.c11 // 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 Dfloatunsisf.c11 // 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;
H A Ddivsf3.c154 // code to round them correctly.
159 const bool round = (residual << 1) > bSignificand; local
165 absResult += round;
H A Ddivdf3.c169 // code to round them correctly.
174 const bool round = (residual << 1) > bSignificand; local
180 absResult += round;
H A Ddivtf3.c186 // code to round them correctly.
190 const bool round = (residual << 1) >= bSignificand; local
196 absResult += round;
/external/valgrind/none/tests/s390x/
H A Drounding-1.c11 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...]
/external/python/cpython2/Python/
H A Dpymath.c70 round(double x) function
/external/python/cpython3/Python/
H A Dpymath.c70 round(double x) function
/external/skia/bench/
H A DBigPathBench.cpp29 BigPathBench(Align align, bool round) : fAlign(align), fRound(round) { argument
31 if (round) {
/external/skia/tools/lua/
H A Dglyph-usage.lua50 function round(x, mul) function
123 local fontID = round(k / 1000)
136 local ave = round(totalCount / strikeCount)
/external/skqp/bench/
H A DBigPathBench.cpp29 BigPathBench(Align align, bool round) : fAlign(align), fRound(round) { argument
31 if (round) {
/external/skqp/tools/lua/
H A Dglyph-usage.lua50 function round(x, mul) function
123 local fontID = round(k / 1000)
136 local ave = round(totalCount / strikeCount)
/external/v8/tools/
H A Dgenerate-ten-powers.scm56 (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/apache-commons-math/src/main/java/org/apache/commons/math/dfp/
H A DDfpDec.java66 round(0);
74 round(0);
83 round(0);
165 protected int round(int in) { method in class:DfpDec
193 return super.round(in);
222 inc = (n != 0) || (discarded != 0); // round up if n!=0
226 inc = n >= 5; // round half up
230 inc = n > 5; // round half down
236 (n == 5 && discarded == 0 && ((lsb / lsbthreshold) & 1) == 1); // round half-even
242 (n == 5 && discarded == 0 && ((lsb / lsbthreshold) & 1) == 0); // round hal
[all...]
/external/icu/icu4c/source/i18n/
H A Dvalueformatter.cpp106 ValueFormatter::round(DigitList &value, UErrorCode &status) const { function in class:ValueFormatter
112 return fFixedPrecision->round(value, 0, status);
114 return fScientificPrecision->round(value, status);
H A Dprecision.cpp49 FixedPrecision::round( function in class:FixedPrecision
69 value.round(fSignificant.getMax());
167 round(value, 0, status);
183 // If we have round increment, use digit list.
223 // If we have round increment, use digit list.
368 ScientificPrecision::round(DigitList &value, UErrorCode &status) const { function in class:ScientificPrecision
374 return fMantissa.round(value, exponent, status);
407 int64_t exponent = toScientific(round(value, status));
/external/jemalloc/test/src/
H A Dtimer.c53 uint64_t round = (i+1 == buflen-1 && ((t0 * mult * 10 / t1) % 10 local
56 "%"FMTu64, (t0 * mult / t1) % 10 + round);
/external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/
H A DRendererCommonTest.java95 private static double[] round(float[] array) { method in class:RendererCommonTest
99 doubleArray[i] = Math.round(100 * array[i]) / 100.0;
120 0, 0, 0, 1}, round(layoutMatrix));
133 1, 0, 0, 1}, round(layoutMatrix));
148 0.25, 0, 0, 1}, round(layoutMatrix));
161 MoreAsserts.assertEquals(round(matrix), round(rotatedMatrix));
174 1, 0, 0, 1}, round(samplingMatrix));
187 1, 1, 0, 1}, round(samplingMatrix));
/external/fio/crc/
H A Dsha3.c51 int i, j, round; local
54 for (round = 0; round < KECCAK_ROUNDS; round++) {
86 st[0] ^= keccakf_rndc[round];
/external/fio/
H A Dtickmarks.c17 static double nicenum(double x, int round) argument
24 if (round) {
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/math/ec/
H A DSimpleBigDecimal.java153 public BigInteger round() method in class:SimpleBigDecimal
/external/libvpx/libvpx/vp9/encoder/x86/
H A Dvp9_quantize_sse2.c30 __m128i round, quant, dequant; local
48 round = _mm_load_si128((const __m128i *)round_ptr);
69 qcoeff0 = _mm_adds_epi16(qcoeff0, round);
70 round = _mm_unpackhi_epi64(round, round);
71 qcoeff1 = _mm_adds_epi16(qcoeff1, round);
140 qcoeff0 = _mm_adds_epi16(qcoeff0, round);
141 qcoeff1 = _mm_adds_epi16(qcoeff1, round);
/external/libvpx/libvpx/vpx_dsp/arm/
H A Dquantize_neon.c36 const int16x8_t round = vld1q_s16(round_ptr); local
51 const int16x8_t rounded = vqaddq_s16(coeff_abs, round);
53 // (round * quant * 2) >> 16 >> 1 == (round * quant) >> 16
86 const int16x8_t round = vdupq_n_s16(round_ptr[1]); local
103 const int16x8_t rounded = vqaddq_s16(coeff_abs, round);
105 // (round * quant * 2) >> 16 >> 1 == (round * quant) >> 16
172 const int16x8_t round = vrshrq_n_s16(vld1q_s16(round_ptr), 1); local
187 const int16x8_t rounded = vqaddq_s16(coeff_abs, round);
230 const int16x8_t round = vrshrq_n_s16(vdupq_n_s16(round_ptr[1]), 1); local
[all...]
/external/libvpx/libvpx/vpx_dsp/x86/
H A Dquantize_avx.c33 __m128i zbin, round, quant, dequant, shift; local
46 load_b_values(zbin_ptr, &zbin, round_ptr, &round, quant_ptr, &quant,
71 round = _mm_unpackhi_epi64(round, round);
76 calculate_qcoeff(&qcoeff0, round, quant, shift);
77 round = _mm_unpackhi_epi64(round, round);
80 calculate_qcoeff(&qcoeff1, round, quan
163 __m128i zbin, round, quant, dequant, shift; local
[all...]

Completed in 910 milliseconds

123456