/external/arduino/hardware/arduino/cores/arduino/ |
H A D | Print.cpp | 197 double rounding = 0.5; local 199 rounding /= 10.0; 201 number += rounding;
|
/external/libyuv/files/unit_test/ |
H A D | scale_test.cc | 22 FilterMode f, int rounding, int benchmark_iterations) { 23 const int b = 128 * rounding; 24 int src_width_uv = (src_width + rounding) >> 1; 25 int src_height_uv = (src_height + rounding) >> 1; 37 int dst_width_uv = (dst_width + rounding) >> 1; 38 int dst_height_uv = (dst_height + rounding) >> 1; 122 // operations may introduce rounding somewhere. So do a difference 20 TestFilter(int src_width, int src_height, int dst_width, int dst_height, FilterMode f, int rounding, int benchmark_iterations) argument
|
/external/chromium_org/third_party/libwebp/dsp/ |
H A D | yuv.h | 272 // Stub functions that can be called with various rounding values: 273 static WEBP_INLINE int VP8ClipUV(int uv, int rounding) { argument 274 uv = (uv + rounding + (128 << (YUV_FIX + 2))) >> (YUV_FIX + 2); 280 static WEBP_INLINE int VP8RGBToY(int r, int g, int b, int rounding) { argument 282 return (luma + rounding + (16 << YUV_FIX)) >> YUV_FIX; // no need to clip 285 static WEBP_INLINE int VP8RGBToU(int r, int g, int b, int rounding) { argument 287 return VP8ClipUV(u, rounding); 290 static WEBP_INLINE int VP8RGBToV(int r, int g, int b, int rounding) { argument 292 return VP8ClipUV(v, rounding); 300 static WEBP_INLINE int VP8RGBToY(int r, int g, int b, int rounding) { argument 305 VP8RGBToU(int r, int g, int b, int rounding) argument 310 VP8RGBToV(int r, int g, int b, int rounding) argument [all...] |
/external/webp/src/dsp/ |
H A D | yuv.h | 272 // Stub functions that can be called with various rounding values: 273 static WEBP_INLINE int VP8ClipUV(int uv, int rounding) { argument 274 uv = (uv + rounding + (128 << (YUV_FIX + 2))) >> (YUV_FIX + 2); 280 static WEBP_INLINE int VP8RGBToY(int r, int g, int b, int rounding) { argument 282 return (luma + rounding + (16 << YUV_FIX)) >> YUV_FIX; // no need to clip 285 static WEBP_INLINE int VP8RGBToU(int r, int g, int b, int rounding) { argument 287 return VP8ClipUV(u, rounding); 290 static WEBP_INLINE int VP8RGBToV(int r, int g, int b, int rounding) { argument 292 return VP8ClipUV(v, rounding); 300 static WEBP_INLINE int VP8RGBToY(int r, int g, int b, int rounding) { argument 305 VP8RGBToU(int r, int g, int b, int rounding) argument 310 VP8RGBToV(int r, int g, int b, int rounding) argument [all...] |
/external/chromium_org/third_party/libvpx/source/libvpx/vp8/encoder/ |
H A D | temporal_filter.c | 101 const int rounding = strength > 0 ? 1 << (strength - 1) : 0; local 118 modifier += rounding;
|
/external/libvpx/libvpx/vp8/encoder/ |
H A D | quantize.c | 158 /* Perform regular quantization, with unbiased rounding and no zero bin. */ 187 int rounding; local 193 rounding = dq >> 1; 197 x += rounding;
|
/external/chromium_org/third_party/icu/source/i18n/ |
H A D | decContext.h | 37 /* round -- must be one of the enumerated rounding modes */ 75 enum rounding { enum 92 enum rounding round; /* rounding mode */ 253 U_INTERNAL enum rounding U_EXPORT2 uprv_decContextGetRounding(decContext *); 257 U_INTERNAL decContext * U_EXPORT2 uprv_decContextSetRounding(decContext *, enum rounding);
|
H A D | decimfmt.cpp | 549 // If it was a currency format, apply the appropriate rounding by 1041 // through a DigitList, was successful, and the formatter is doing nothing tricky with rounding. 1599 // Apply rounding after multiplier 3744 * Get the rounding increment. 3745 * @return A positive rounding increment, or 0.0 if rounding 3760 * Set the rounding increment. This method also controls whether 3761 * rounding is enabled. 3762 * @param newValue A positive rounding increment, or 0.0 to disable rounding 5572 double rounding = 0.0; local [all...] |
/external/chromium_org/third_party/libvpx/source/libvpx/vp9/common/x86/ |
H A D | vp9_idct_intrin_ssse3.c | 388 const __m128i rounding = _mm_set1_epi32(DCT_CONST_ROUNDING); local 439 tmp1 = _mm_add_epi32(tmp1, rounding); 440 tmp3 = _mm_add_epi32(tmp3, rounding); 441 tmp2 = _mm_add_epi32(tmp2, rounding); 442 tmp4 = _mm_add_epi32(tmp4, rounding); 532 const __m128i rounding = _mm_set1_epi32(DCT_CONST_ROUNDING); local 596 tmp0 = _mm_add_epi32(tmp0, rounding); 597 tmp1 = _mm_add_epi32(tmp1, rounding); 598 tmp2 = _mm_add_epi32(tmp2, rounding); 599 tmp3 = _mm_add_epi32(tmp3, rounding); [all...] |
H A D | vp9_idct_intrin_sse2.c | 30 const __m128i rounding = _mm_set1_epi32(DCT_CONST_ROUNDING); local 54 input0 = _mm_add_epi32(input0, rounding); 55 input1 = _mm_add_epi32(input1, rounding); 56 input2 = _mm_add_epi32(input2, rounding); 57 input3 = _mm_add_epi32(input3, rounding); 93 input0 = _mm_add_epi32(input0, rounding); 94 input1 = _mm_add_epi32(input1, rounding); 95 input2 = _mm_add_epi32(input2, rounding); 96 input3 = _mm_add_epi32(input3, rounding); 399 tmp0 = _mm_add_epi32(tmp0, rounding); \ 518 const __m128i rounding = _mm_set1_epi32(DCT_CONST_ROUNDING); local 607 const __m128i rounding = _mm_set1_epi32(DCT_CONST_ROUNDING); local 929 const __m128i rounding = _mm_set1_epi32(DCT_CONST_ROUNDING); local 1306 const __m128i rounding = _mm_set1_epi32(DCT_CONST_ROUNDING); local 2368 const __m128i rounding = _mm_set1_epi32(DCT_CONST_ROUNDING); local 3289 const __m128i rounding = _mm_set1_epi32(DCT_CONST_ROUNDING); local 3574 const __m128i rounding = _mm_set1_epi32(DCT_CONST_ROUNDING); local [all...] |
/external/chromium_org/third_party/libvpx/source/libvpx/vp9/encoder/ |
H A D | vp9_temporal_filter.c | 104 const int rounding = strength > 0 ? 1 << (strength - 1) : 0; local 117 modifier += rounding;
|
/external/icu/icu4c/source/i18n/ |
H A D | decContext.h | 37 /* round -- must be one of the enumerated rounding modes */ 75 enum rounding { enum 92 enum rounding round; /* rounding mode */ 253 U_INTERNAL enum rounding U_EXPORT2 uprv_decContextGetRounding(decContext *); 257 U_INTERNAL decContext * U_EXPORT2 uprv_decContextSetRounding(decContext *, enum rounding);
|
/external/svox/pico/lib/ |
H A D | picosig2.c | 4015 picoos_single rounding = 0.5f; local 4063 Ti = (picoos_int32) (rounding + (picoos_single) Fs 4077 = (picoos_int32) (rounding + (picoos_single) Fs
|
/external/chromium_org/third_party/icu/source/test/intltest/ |
H A D | numrgts.cpp | 882 * Number format data rounding errors for locale FR 960 * Data rounding errors for French (Canada) locale 1032 * Data rounding errors for German (Germany) locale 1100 * Data rounding errors for Italian locale number formats 1165 * Test rounding for nearest even. 1717 // Get the currency (if there is one) so we can set the rounding and fraction 1720 double rounding = ucurr_getRoundingIncrement(currency, &status); local 1723 fmt2->setRoundingIncrement(rounding); 1728 failure(status, "Fetching currency rounding/fractions"); 2249 * DecimalFormat is incorrectly rounding number [all...] |
/external/icu/icu4c/source/test/intltest/ |
H A D | numrgts.cpp | 882 * Number format data rounding errors for locale FR 960 * Data rounding errors for French (Canada) locale 1032 * Data rounding errors for German (Germany) locale 1100 * Data rounding errors for Italian locale number formats 1165 * Test rounding for nearest even. 1717 // Get the currency (if there is one) so we can set the rounding and fraction 1720 double rounding = ucurr_getRoundingIncrement(currency, &status); local 1723 fmt2->setRoundingIncrement(rounding); 1728 failure(status, "Fetching currency rounding/fractions"); 2249 * DecimalFormat is incorrectly rounding number [all...] |
/external/chromium_org/base/third_party/dmg_fp/ |
H A D | dtoa.cc | 24 * necessary to specify double-precision (53-bit) rounding precision 39 * biased rounding (add half and chop). 76 * is also #defined, fegetround() will be queried for the rounding mode. 87 * #define ROUND_BIASED for IEEE-format with biased rounding. 485 BCinfo { int dp0, dp1, dplen, dsign, e0, inexact, nd, nd0, rounding, scale, uflchk; }; member in struct:dmg_fp::BCinfo 1708 enum { /* rounding values: same as FLT_ROUNDS */ 1748 gethex(sp, rvp, rounding, sign) 1749 CONST char **sp; U *rvp; int rounding, sign; member in namespace:dmg_fp 1751 gethex( CONST char **sp, U *rvp, int rounding, int sign) 1884 switch(rounding) { [all...] |
/external/libvpx/libvpx/vp9/common/x86/ |
H A D | vp9_idct_intrin_sse2.c | 35 const __m128i rounding = _mm_set1_epi32(DCT_CONST_ROUNDING); local 59 input0 = _mm_add_epi32(input0, rounding); 60 input1 = _mm_add_epi32(input1, rounding); 61 input2 = _mm_add_epi32(input2, rounding); 62 input3 = _mm_add_epi32(input3, rounding); 98 input0 = _mm_add_epi32(input0, rounding); 99 input1 = _mm_add_epi32(input1, rounding); 100 input2 = _mm_add_epi32(input2, rounding); 101 input3 = _mm_add_epi32(input3, rounding); 413 tmp0 = _mm_add_epi32(tmp0, rounding); \ 542 const __m128i rounding = _mm_set1_epi32(DCT_CONST_ROUNDING); local 678 const __m128i rounding = _mm_set1_epi32(DCT_CONST_ROUNDING); local 1000 const __m128i rounding = _mm_set1_epi32(DCT_CONST_ROUNDING); local 1377 const __m128i rounding = _mm_set1_epi32(DCT_CONST_ROUNDING); local 2532 const __m128i rounding = _mm_set1_epi32(DCT_CONST_ROUNDING); local 3453 const __m128i rounding = _mm_set1_epi32(DCT_CONST_ROUNDING); local 3738 const __m128i rounding = _mm_set1_epi32(DCT_CONST_ROUNDING); local [all...] |