/external/chromium_org/third_party/libjingle/source/talk/base/ |
rollingaccumulator_unittest.cc | 40 RollingAccumulator<int> accum(10); 42 EXPECT_EQ(0U, accum.count()); 43 EXPECT_EQ(0, accum.ComputeMean()); 44 EXPECT_EQ(0, accum.ComputeVariance()); 48 RollingAccumulator<int> accum(10); 50 accum.AddSample(i); 53 EXPECT_EQ(4U, accum.count()); 54 EXPECT_EQ(6, accum.ComputeSum()); 55 EXPECT_EQ(1, accum.ComputeMean()); 56 EXPECT_EQ(2, accum.ComputeWeightedMean(kLearningRate)) [all...] |
/external/clang/test/CodeGen/ |
arm-neon-fma.c | 11 float32x2_t test_fma_order(float32x2_t accum, float32x2_t lhs, float32x2_t rhs) { 12 return vfma_f32(accum, lhs, rhs); 13 // CHECK: call <2 x float> @llvm.fma.v2f32(<2 x float> %lhs, <2 x float> %rhs, <2 x float> %accum) 16 float32x4_t test_fmaq_order(float32x4_t accum, float32x4_t lhs, float32x4_t rhs) { 17 return vfmaq_f32(accum, lhs, rhs); 18 // CHECK: call <4 x float> @llvm.fma.v4f32(<4 x float> %lhs, <4 x float> %rhs, <4 x float> %accum)
|
vector.c | 32 __m64 accum = _mm_setzero_si64(); local 35 accum = _mm_add_pi32(p[i], accum); 37 __m64 accum2 = _mm_unpackhi_pi32(accum, accum); 38 accum = _mm_add_pi32(accum, accum2); 40 int result = _mm_cvtsi64_si32(accum);
|
/packages/apps/Exchange/src/com/android/exchange/adapter/ |
Base64InputStream.java | 131 int accum = 0;
local 132 accum |= inputBuffer[0] << 18;
133 accum |= inputBuffer[1] << 12;
134 accum |= inputBuffer[2] << 6;
135 accum |= inputBuffer[3];
140 outputBuffer[0] = (accum >> 16) & 0xFF;
141 outputBuffer[1] = (accum >> 8) & 0xFF;
142 outputBuffer[2] = (accum) & 0xFF;
146 outputBuffer[0] = (accum >> 16) & 0xFF;
147 outputBuffer[1] = (accum >> 8) & 0xFF; [all...] |
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/decoder/ |
Base64InputStream.java | 105 int accum = 0;
local 106 accum |= inputBuffer[0] << 18;
107 accum |= inputBuffer[1] << 12;
108 accum |= inputBuffer[2] << 6;
109 accum |= inputBuffer[3];
114 outputBuffer[0] = (accum >> 16) & 0xFF;
115 outputBuffer[1] = (accum >> 8) & 0xFF;
116 outputBuffer[2] = (accum) & 0xFF;
120 outputBuffer[0] = (accum >> 16) & 0xFF;
121 outputBuffer[1] = (accum >> 8) & 0xFF; [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
ets_to_wmf.cpp | 174 UWord8 accum; local 220 accum = (UWord8) * (ptr_temp++) << 7; 221 accum |= (UWord8) * (ptr_temp++) << 6; 222 accum |= (UWord8) * (ptr_temp++) << 5; 223 accum |= (UWord8) * (ptr_temp++) << 4; 224 accum |= (UWord8) * (ptr_temp++) << 3; 225 accum |= (UWord8) * (ptr_temp++) << 2; 226 accum |= (UWord8) * (ptr_temp++) << 1; 227 accum |= (UWord8) * (ptr_temp++); 229 wmf_output_ptr[j++] = accum; [all...] |
ets_to_if2.cpp | 149 UWord8 accum; local 208 accum = (UWord8) * (ptr_temp++); 209 accum |= (UWord8) * (ptr_temp++) << 1; 210 accum |= (UWord8) * (ptr_temp++) << 2; 211 accum |= (UWord8) * (ptr_temp++) << 3; 212 accum |= (UWord8) * (ptr_temp++) << 4; 213 accum |= (UWord8) * (ptr_temp++) << 5; 214 accum |= (UWord8) * (ptr_temp++) << 6; 215 accum |= (UWord8) * (ptr_temp++) << 7; 217 if2_output_ptr[j++] = accum; [all...] |
/external/chromium_org/third_party/skia/src/core/ |
SkConvolver.cpp | 130 // Apply the filter to the row to get the destination pixel in |accum|. 131 int accum[4] = {0}; local 134 accum[0] += curFilter * rowToFilter[filterX * 4 + 0]; 135 accum[1] += curFilter * rowToFilter[filterX * 4 + 1]; 136 accum[2] += curFilter * rowToFilter[filterX * 4 + 2]; 138 accum[3] += curFilter * rowToFilter[filterX * 4 + 3]; 144 accum[0] >>= SkConvolutionFilter1D::kShiftBits; 145 accum[1] >>= SkConvolutionFilter1D::kShiftBits; 146 accum[2] >>= SkConvolutionFilter1D::kShiftBits; 148 accum[3] >>= SkConvolutionFilter1D::kShiftBits 181 int accum[4] = {0}; local [all...] |
SkRect.cpp | 104 // If all of the points are finite, accum should stay 0. If we encounter 105 // a NaN or infinity, then accum should become NaN. 106 SkFLOATCODE(float accum = 0;) 107 SkFLOATCODE(accum *= l; accum *= t;) 113 SkFLOATCODE(accum *= x; accum *= y;) 120 SkASSERT(!accum || !SkScalarIsFinite(accum)); 121 if (accum) { [all...] |
/external/skia/src/core/ |
SkConvolver.cpp | 130 // Apply the filter to the row to get the destination pixel in |accum|. 131 int accum[4] = {0}; local 134 accum[0] += curFilter * rowToFilter[filterX * 4 + 0]; 135 accum[1] += curFilter * rowToFilter[filterX * 4 + 1]; 136 accum[2] += curFilter * rowToFilter[filterX * 4 + 2]; 138 accum[3] += curFilter * rowToFilter[filterX * 4 + 3]; 144 accum[0] >>= SkConvolutionFilter1D::kShiftBits; 145 accum[1] >>= SkConvolutionFilter1D::kShiftBits; 146 accum[2] >>= SkConvolutionFilter1D::kShiftBits; 148 accum[3] >>= SkConvolutionFilter1D::kShiftBits 181 int accum[4] = {0}; local [all...] |
SkRect.cpp | 104 // If all of the points are finite, accum should stay 0. If we encounter 105 // a NaN or infinity, then accum should become NaN. 106 SkFLOATCODE(float accum = 0;) 107 SkFLOATCODE(accum *= l; accum *= t;) 113 SkFLOATCODE(accum *= x; accum *= y;) 120 SkASSERT(!accum || !SkScalarIsFinite(accum)); 121 if (accum) { [all...] |
/external/chromium_org/skia/ext/ |
convolver_SSE2.cc | 38 __m128i accum = _mm_setzero_si128(); local 67 accum = _mm_add_epi32(accum, t); 70 accum = _mm_add_epi32(accum, t); 85 accum = _mm_add_epi32(accum, t); 88 accum = _mm_add_epi32(accum, t); 116 accum = _mm_add_epi32(accum, t) [all...] |
convolver.cc | 144 // Apply the filter to the row to get the destination pixel in |accum|. 145 int accum[4] = {0}; local 148 accum[0] += cur_filter * row_to_filter[filter_x * 4 + 0]; 149 accum[1] += cur_filter * row_to_filter[filter_x * 4 + 1]; 150 accum[2] += cur_filter * row_to_filter[filter_x * 4 + 2]; 152 accum[3] += cur_filter * row_to_filter[filter_x * 4 + 3]; 157 accum[0] >>= ConvolutionFilter1D::kShiftBits; 158 accum[1] >>= ConvolutionFilter1D::kShiftBits; 159 accum[2] >>= ConvolutionFilter1D::kShiftBits; 161 accum[3] >>= ConvolutionFilter1D::kShiftBits 192 int accum[4] = {0}; local [all...] |
/frameworks/native/opengl/libagl/ |
matrix.h | 221 int32_t accum; 224 accum = int64_t(a0)*int16_t(b0) >> 16; 225 accum += int64_t(a1)*int16_t(b1) >> 16; 226 accum += int64_t(a2)*int16_t(b2) >> 16; 227 accum = (accum << shift) + c; 228 return accum; 262 int32_t accum; 266 accum = int64_t(a0)*int16_t(b0) >> 16; 267 accum += int64_t(a1)*int16_t(b1) >> 16 [all...] |
/frameworks/av/media/libstagefright/foundation/ |
base64.cpp | 45 uint32_t accum = 0; local 69 accum = (accum << 6) | value; 72 out[j++] = (accum >> 16); 74 if (j < outLen) { out[j++] = (accum >> 8) & 0xff; } 75 if (j < outLen) { out[j++] = accum & 0xff; } 77 accum = 0;
|
/external/srec/audio/AudioIn/UNIX/src/ |
filter.c | 231 typeAccum accum; local 241 accum = 0; 265 accum += *ph++ * *pz++; 273 accum += *ph++ * *pz++; 282 if (accum >= 0) 283 accum += pFIR->round; 285 accum -= pFIR->round; 288 *pOutput = (typeSample) (accum >> pFIR->scale);
|
/external/chromium_org/third_party/skia/src/opts/ |
SkBitmapFilter_opts_SSE2.cpp | 65 __m128 accum = _mm_setzero_ps(); local 90 accum = _mm_add_ps(accum, _mm_mul_ps(cfloat, weightVector)); 95 accum = _mm_div_ps(accum, weight); 96 accum = _mm_add_ps(accum, _mm_set1_ps(0.5f)); 98 __m128i accumInt = _mm_cvtps_epi32( accum ); 134 __m128 accum = _mm_setzero_ps(); local 156 accum = _mm_add_ps(accum, _mm_mul_ps(c, weightVector)) 205 __m128i accum = _mm_setzero_si128(); local [all...] |
SkBitmapProcState_arm_neon.cpp | 121 // Apply the filter to the row to get the destination pixel in |accum|. 122 int32x4_t accum = vdupq_n_s32(0); local 147 accum += p0; 148 accum += p1; 149 accum += p2; 150 accum += p3; 180 accum += p0; 181 accum += p1; 182 accum += p2; 187 accum = vshrq_n_s32(accum, SkConvolutionFilter1D::kShiftBits) [all...] |
/external/skia/src/opts/ |
SkBitmapFilter_opts_SSE2.cpp | 65 __m128 accum = _mm_setzero_ps(); local 90 accum = _mm_add_ps(accum, _mm_mul_ps(cfloat, weightVector)); 95 accum = _mm_div_ps(accum, weight); 96 accum = _mm_add_ps(accum, _mm_set1_ps(0.5f)); 98 __m128i accumInt = _mm_cvtps_epi32( accum ); 134 __m128 accum = _mm_setzero_ps(); local 156 accum = _mm_add_ps(accum, _mm_mul_ps(c, weightVector)) 205 __m128i accum = _mm_setzero_si128(); local [all...] |
/external/chromium_org/third_party/libwebp/utils/ |
rescaler.c | 60 int accum = 0; local 64 accum += wrk->x_add; 65 for (; accum > 0; accum -= wrk->x_sub) { 71 const int32_t frac = base * (-accum); 81 if (accum < 0) { 85 accum += wrk->x_add; 87 wrk->frow[x_out] = right * wrk->x_add + (left - right) * accum; 88 accum -= wrk->x_sub;
|
/external/chromium_org/third_party/mesa/src/src/mesa/swrast/ |
s_renderbuffer.h | 61 GLboolean accum,
|
/external/guava/guava/src/com/google/common/math/ |
IntMath.java | 185 for (int accum = 1;; k >>= 1) { 188 return accum; 190 return b * accum; 192 accum *= ((k & 1) == 0) ? 1 : b; 408 int accum = 1; 412 return accum; 414 return checkedMultiply(accum, b); 417 accum = checkedMultiply(accum, b);
|
/external/mesa3d/src/mesa/swrast/ |
s_renderbuffer.h | 61 GLboolean accum,
|
/external/webp/src/utils/ |
rescaler.c | 60 int accum = 0; local 64 accum += wrk->x_add; 65 for (; accum > 0; accum -= wrk->x_sub) { 71 const int32_t frac = base * (-accum); 81 if (accum < 0) { 85 accum += wrk->x_add; 87 wrk->frow[x_out] = right * wrk->x_add + (left - right) * accum; 88 accum -= wrk->x_sub;
|
/external/qemu/distrib/sdl-1.2.15/src/audio/sun/ |
SDL_sunaudio.c | 167 int accum, incr, pos; local 170 accum = 0; 180 accum += incr; 181 while ( accum > 0 ) { 182 accum -= 1000; 195 accum += incr; 196 while ( accum > 0 ) { 197 accum -= 1000;
|