HomeSort by relevance Sort by last modified time
    Searched refs:rounded (Results 1 - 25 of 91) sorted by null

1 2 3 4

  /cts/apps/CtsVerifier/jni/audio_loopback/audio_utils/
roundup.c 26 unsigned rounded = ((unsigned) 0x80000000) >> lz; local
27 // 0x800000001 and higher are actually rounded _down_ to prevent overflow
28 if (v > rounded && lz > 0) {
29 rounded <<= 1;
31 return rounded;
  /external/drrickorang/LoopbackApp/app/src/main/cpp/audio_utils/
roundup.c 26 unsigned rounded = ((unsigned) 0x80000000) >> lz; local
27 // 0x800000001 and higher are actually rounded _down_ to prevent overflow
28 if (v > rounded && lz > 0) {
29 rounded <<= 1;
31 return rounded;
  /external/libchrome/ui/gfx/geometry/
safe_integer_conversions.h 33 float rounded; local
35 rounded = std::floor(value + 0.5f);
37 rounded = std::ceil(value - 0.5f);
38 return base::saturated_cast<int>(rounded);
42 double rounded; local
44 rounded = std::floor(value + 0.5);
46 rounded = std::ceil(value - 0.5);
47 return base::saturated_cast<int>(rounded);
  /external/mesa3d/include/
c99_math.h 55 long int rounded = (long int)(d + 0.5); local
58 if (rounded % 2 != 0)
59 rounded += (d > 0) ? -1 : 1;
62 return rounded;
68 long int rounded = (long int)(f + 0.5f); local
71 if (rounded % 2 != 0)
72 rounded += (f > 0) ? -1 : 1;
75 return rounded;
81 long long int rounded = (long long int)(d + 0.5); local
84 if (rounded % 2 != 0
94 long long int rounded = (long long int)(f + 0.5f); local
    [all...]
  /bionic/libc/bionic/
mremap.cpp 41 size_t rounded = __BIONIC_ALIGN(new_size, PAGE_SIZE); local
42 if (rounded < new_size || rounded > PTRDIFF_MAX) {
mmap.cpp 51 size_t rounded = __BIONIC_ALIGN(size, PAGE_SIZE); local
52 if (rounded < size || rounded > PTRDIFF_MAX) {
  /external/drrickorang/LoopbackApp/app/src/main/java/org/drrickorang/loopback/
Utilities.java 51 int rounded = 0x80000000 >>> lz; local
52 // 0x800000001 and higher are actually rounded _down_ to prevent overflow
53 if (size > rounded && lz > 0) {
54 rounded <<= 1;
56 return rounded;
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/wavelib/
PipeShort.java 32 // maxBytes will be rounded up to a power of 2, and all slots are available. Must be >= 2.
132 int rounded = 0x80000000 >>> lz; local
133 // 0x800000001 and higher are actually rounded _down_ to prevent overflow
134 if (v > rounded && lz > 0) {
135 rounded <<= 1;
137 return rounded;
  /external/arm-optimized-routines/math/single/
e_logf.c 57 int rounded = ix + 0x00080000; local
58 int Nnew = (rounded >> 23) - 127;
59 aindex = (rounded >> 20) & 7;
  /external/libvpx/libvpx/vpx_dsp/arm/
quantize_neon.c 67 const int16x8_t rounded = vqaddq_s16(coeff_abs, round); local
70 int16x8_t qcoeff = vshrq_n_s16(vqdmulhq_s16(rounded, quant), 1);
72 qcoeff = vaddq_s16(qcoeff, rounded);
117 const int16x8_t rounded = vqaddq_s16(coeff_abs, round); local
120 int16x8_t qcoeff = vshrq_n_s16(vqdmulhq_s16(rounded, quant), 1);
122 qcoeff = vaddq_s16(qcoeff, rounded);
190 // values are divided by 2. zbin is rounded but dqcoeff is not.
227 const int16x8_t rounded = vqaddq_s16(coeff_abs, round); local
230 int16x8_t qcoeff = vshrq_n_s16(vqdmulhq_s16(rounded, quant), 1);
232 qcoeff = vaddq_s16(qcoeff, rounded);
275 const int16x8_t rounded = vqaddq_s16(coeff_abs, round); local
    [all...]
  /external/virglrenderer/src/gallium/auxiliary/util/
u_math.h 156 long int rounded = (long int)(d + 0.5); local
159 if (rounded % 2 != 0)
160 rounded += (d > 0) ? -1 : 1;
163 return rounded;
169 long int rounded = (long int)(f + 0.5f); local
172 if (rounded % 2 != 0)
173 rounded += (f > 0) ? -1 : 1;
176 return rounded;
182 long long int rounded = (long long int)(d + 0.5); local
185 if (rounded % 2 != 0
195 long long int rounded = (long long int)(f + 0.5f); local
    [all...]
  /external/fonttools/Lib/fontTools/pens/
t2CharStringPen.py 15 rounded = otRound(number)
16 # return rounded integer if the tolerance >= 0.5, or if the absolute
17 # difference between the original float and the rounded integer is
19 if tolerance >= .5 or abs(rounded - number) <= tolerance:
20 return rounded
22 # else return the value un-rounded
41 float and the rounded integer value.
42 The default tolerance of 0.5 means that all floats are rounded to integer;
  /external/v8/src/mips/
simulator-mips.cc 2860 double rounded; local
2870 double rounded = std::floor(fs + 0.5); local
2884 double rounded = trunc(fs); local
2893 double rounded = std::floor(fs); local
2902 double rounded = std::ceil(fs); local
2915 double rounded; local
2929 double rounded = trunc(fs); local
2943 double rounded = std::floor(fs + 0.5); local
2963 double rounded = std::floor(fs); local
2977 double rounded = std::ceil(fs); local
3410 float rounded = trunc(fs); local
3419 float rounded = trunc(fs); local
3433 float rounded = std::floor(fs); local
3442 float rounded = std::floor(fs); local
3455 float rounded = std::floor(fs + 0.5); local
3470 float rounded = std::floor(fs + 0.5); local
3490 float rounded = std::ceil(fs); local
3499 float rounded = std::ceil(fs); local
3530 float rounded; local
3542 float rounded; local
    [all...]
simulator-mips.h 189 void set_fpu_register_invalid_result64(float original, float rounded);
190 void set_fpu_register_invalid_result(float original, float rounded);
191 void set_fpu_register_word_invalid_result(float original, float rounded);
192 void set_fpu_register_invalid_result64(double original, double rounded);
193 void set_fpu_register_invalid_result(double original, double rounded);
194 void set_fpu_register_word_invalid_result(double original, double rounded);
211 bool set_fcsr_round_error(double original, double rounded);
212 bool set_fcsr_round_error(float original, float rounded);
213 bool set_fcsr_round64_error(double original, double rounded);
214 bool set_fcsr_round64_error(float original, float rounded);
    [all...]
  /external/v8/src/mips64/
simulator-mips64.cc 2817 float rounded; local
2827 float rounded; local
2837 float rounded = trunc(fs); local
2845 float rounded = trunc(fs); local
2854 float rounded = std::floor(fs + 0.5); local
2868 float rounded = std::floor(fs + 0.5); local
2883 float rounded = floor(fs); local
2893 float rounded = std::floor(fs); local
2902 float rounded = std::ceil(fs); local
2910 float rounded = ceil(fs); local
3178 double rounded; local
3189 double rounded = std::floor(fs + 0.5); local
3203 double rounded = trunc(fs); local
3212 double rounded = std::floor(fs); local
3221 double rounded = std::ceil(fs); local
3232 double rounded; local
3242 double rounded = std::floor(fs + 0.5); local
3257 double rounded = trunc(fs); local
3266 double rounded = floor(fs); local
3275 double rounded = ceil(fs); local
    [all...]
simulator-mips64.h 190 void set_fpu_register_invalid_result64(float original, float rounded);
191 void set_fpu_register_invalid_result(float original, float rounded);
192 void set_fpu_register_word_invalid_result(float original, float rounded);
193 void set_fpu_register_invalid_result64(double original, double rounded);
194 void set_fpu_register_invalid_result(double original, double rounded);
195 void set_fpu_register_word_invalid_result(double original, double rounded);
208 bool set_fcsr_round_error(double original, double rounded);
209 bool set_fcsr_round64_error(double original, double rounded);
210 bool set_fcsr_round_error(float original, float rounded);
211 bool set_fcsr_round64_error(float original, float rounded);
    [all...]
  /external/v8/src/wasm/baseline/mips64/
liftoff-assembler-mips64.h 742 LiftoffRegister rounded = local
745 GetUnusedRegister(kFpReg, LiftoffRegList::ForRegs(src, rounded));
748 TurboAssembler::Trunc_s_s(rounded.fp(), src.fp());
749 trunc_w_s(kScratchDoubleReg, rounded.fp());
760 TurboAssembler::CompareF32(EQ, rounded.fp(), converted_back.fp());
765 LiftoffRegister rounded = local
768 GetUnusedRegister(kFpReg, LiftoffRegList::ForRegs(src, rounded));
771 TurboAssembler::Trunc_s_s(rounded.fp(), src.fp());
772 TurboAssembler::Trunc_uw_s(dst.gp(), rounded.fp(), kScratchDoubleReg);
781 TurboAssembler::CompareF32(EQ, rounded.fp(), converted_back.fp())
786 LiftoffRegister rounded = local
803 LiftoffRegister rounded = local
828 LiftoffRegister rounded = local
860 LiftoffRegister rounded = local
    [all...]
  /external/tensorflow/tensorflow/core/framework/
bfloat16_test.cc 70 bfloat16 rounded = bfloat16::round_to_bfloat16((GetParam().input)); local
72 EXPECT_TRUE(std::isnan(float(rounded)) || std::isinf(float(rounded)));
75 EXPECT_EQ(GetParam().expected_rounding, float(rounded));
  /external/libvpx/libvpx/vpx_dsp/ppc/
quantize_vsx.c 42 const int16x8_t rounded = vec_vaddshs(coeff_abs, round); local
43 int16x8_t qcoeff = vec_mulhi(rounded, quant);
44 qcoeff = vec_add(qcoeff, rounded);
55 const int16x8_t rounded = vec_vaddshs(coeff_abs, round); local
56 int16x8_t qcoeff = vec_mulhi(rounded, quant);
57 qcoeff = vec_add(qcoeff, rounded);
  /external/eigen/bench/btl/data/
mk_new_gnuplot.sh 21 echo set term postscript color rounded enhanced >> $WHAT.gnuplot
24 # echo set term svg color rounded enhanced >> $WHAT.gnuplot
  /external/jacoco/org.jacoco.report/src/org/jacoco/report/check/
Limit.java 182 final BigDecimal rounded = v.setScale(ref.scale(), mode); local
185 rounded.toPlainString(), minmax, ref.toPlainString());
  /external/jarjar/src/main/com/tonicsystems/jarjar/util/
ClassHeaderReader.java 145 int rounded = (int)(CHUNK * Math.ceil((float)amount / CHUNK)); local
146 bsize += read(in, b, bsize, rounded - bsize);
  /external/v8/src/wasm/baseline/mips/
liftoff-assembler-mips.h 879 LiftoffRegister rounded = local
882 GetUnusedRegister(kFpReg, LiftoffRegList::ForRegs(src, rounded));
885 TurboAssembler::Trunc_s_s(rounded.fp(), src.fp());
886 trunc_w_s(kScratchDoubleReg, rounded.fp());
897 TurboAssembler::CompareF32(EQ, rounded.fp(), converted_back.fp());
902 LiftoffRegister rounded = local
905 GetUnusedRegister(kFpReg, LiftoffRegList::ForRegs(src, rounded));
908 TurboAssembler::Trunc_s_s(rounded.fp(), src.fp());
909 TurboAssembler::Trunc_uw_s(dst.gp(), rounded.fp(), kScratchDoubleReg);
919 TurboAssembler::CompareF32(EQ, rounded.fp(), converted_back.fp())
926 LiftoffRegister rounded = local
949 LiftoffRegister rounded = local
    [all...]
  /external/deqp/framework/common/
tcuBilinearImageCompare.cpp 80 const deUint32 rounded = (sum + half) >> (NUM_SUBPIXEL_BITS*2); local
82 DE_ASSERT(de::inRange<deUint32>(rounded, 0, 0xff));
83 return (deUint8)rounded;
  /external/python/cpython3/Objects/
floatobject.c 895 double wholepart; /* integral portion of x, rounded toward 0 */
906 * and if that's rounded up, then, e.g., wholepart=LONG_MAX+1 would
923 /* version of double_round that uses the correctly-rounded string<->double
929 double rounded; local
963 rounded = _Py_dg_strtod(mybuf, NULL);
965 if (errno == ERANGE && fabs(rounded) >= 1.)
967 "rounded value too large to represent");
969 result = PyFloat_FromDouble(rounded);
981 /* fallback version, to be used when correctly rounded binary<->decimal
999 /* if y overflows, then rounded value is exactly x *
1048 double x, rounded; local
    [all...]

Completed in 441 milliseconds

1 2 3 4