/external/webrtc/webrtc/base/ |
rollingaccumulator_unittest.cc | 23 RollingAccumulator<int> accum(10); 25 EXPECT_EQ(0U, accum.count()); 26 EXPECT_DOUBLE_EQ(0.0, accum.ComputeMean()); 27 EXPECT_DOUBLE_EQ(0.0, accum.ComputeVariance()); 28 EXPECT_EQ(0, accum.ComputeMin()); 29 EXPECT_EQ(0, accum.ComputeMax()); 33 RollingAccumulator<int> accum(10); 35 accum.AddSample(i); 38 EXPECT_EQ(4U, accum.count()); 39 EXPECT_EQ(6, accum.ComputeSum()) [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);
|
/cts/tests/tests/view/src/android/view/cts/surfacevalidator/ |
PixelCounter.rs | 22 static void countBlackishPixelsAccum(int *accum, uchar4 pixel){ 26 *accum += 1; 30 static void countBlackishPixelsCombiner(int *accum, const int *other){ 31 *accum += *other;
|
/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...] |
/packages/services/Telephony/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...] |
/prebuilts/go/darwin-x86/test/bench/shootout/ |
pidigits.c | 41 static mpz_t numer, accum, denom, tmp1, tmp2; variable 45 if (mpz_cmp(numer, accum) > 0) 48 /* Compute (numer * 3 + accum) / denom */ 51 mpz_add(tmp1, tmp1, accum); 54 /* Now, if (numer * 4 + accum) % denom... */ 69 mpz_add(accum, accum, tmp1); 70 mpz_mul_ui(accum, accum, y2); 77 mpz_submul_ui(accum, denom, d) [all...] |
pidigits.go | 56 accum = big.NewInt(0) 62 if numer.Cmp(accum) > 0 { 66 // Compute (numer * 3 + accum) / denom 69 tmp1.Add(tmp1, accum) 72 // Now, if (numer * 4 + accum) % denom... 88 accum.Add(accum, tmp1) 89 accum.Mul(accum, y2) 96 accum.Sub(accum, tmp3.Mul(denom, tmp3) [all...] |
/prebuilts/go/linux-x86/test/bench/shootout/ |
pidigits.c | 41 static mpz_t numer, accum, denom, tmp1, tmp2; variable 45 if (mpz_cmp(numer, accum) > 0) 48 /* Compute (numer * 3 + accum) / denom */ 51 mpz_add(tmp1, tmp1, accum); 54 /* Now, if (numer * 4 + accum) % denom... */ 69 mpz_add(accum, accum, tmp1); 70 mpz_mul_ui(accum, accum, y2); 77 mpz_submul_ui(accum, denom, d) [all...] |
pidigits.go | 56 accum = big.NewInt(0) 62 if numer.Cmp(accum) > 0 { 66 // Compute (numer * 3 + accum) / denom 69 tmp1.Add(tmp1, accum) 72 // Now, if (numer * 4 + accum) % denom... 88 accum.Add(accum, tmp1) 89 accum.Mul(accum, y2) 96 accum.Sub(accum, tmp3.Mul(denom, tmp3) [all...] |
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
reduce.rs | 39 static void aiAccum(int *accum, int val) { *accum += val; } 58 static void fMMInit(MinAndMax *accum) { 59 accum->min.val = posInf; 60 accum->min.idx = -1; 61 accum->max.val = negInf; 62 accum->max.idx = -1; 65 static void fMMAccumulator(MinAndMax *accum, float in, int x) { 70 if (me.val < accum->min.val) 71 accum->min = me [all...] |
/system/media/audio_utils/ |
conversion.cpp | 35 int accum = 0; local 37 accum += *in++; 39 accum /= channelCount; // round to 0 41 *out++ = accum; 50 float accum = 0; local 52 accum += *in++; 55 accum = limiter(accum * M_SQRT1_2); 57 accum *= recipdiv; 60 *out++ = accum; [all...] |
/external/clang/test/Sema/ |
arm64-neon-args.c | 12 float32x4_t test_vmlsq_lane(float32x4_t accum, float32x4_t lhs, float32x2_t rhs) { 13 return vmlsq_lane_f32(accum, lhs, rhs, 1);
|
/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/opencv3/modules/cudaimgproc/src/cuda/ |
hough_lines.cu | 61 __global__ void linesAccumGlobal(const unsigned int* list, const int count, PtrStepi accum, const float irho, const float theta, const int numrho) 74 int* accumRow = accum.ptr(n + 1); 89 __global__ void linesAccumShared(const unsigned int* list, const int count, PtrStepi accum, const float irho, const float theta, const int numrho) 124 int* accumRow = accum.ptr(n + 1); 129 void linesAccum_gpu(const unsigned int* list, int count, PtrStepSzi accum, float rho, float theta, size_t sharedMemPerBlock, bool has20) 132 const dim3 grid(accum.rows - 2); 134 size_t smemSize = (accum.cols - 1) * sizeof(int); 137 linesAccumShared<<<grid, block, smemSize>>>(list, count, accum, 1.0f / rho, theta, accum.cols - 2); 139 linesAccumGlobal<<<grid, block>>>(list, count, accum, 1.0f / rho, theta, accum.cols - 2) [all...] |
hough_circles.cu | 63 PtrStepi accum, const int width, const int height, const int minRadius, const int maxRadius, const float idp) 106 ::atomicAdd(accum.ptr(y2 + 1) + x2 + 1, 1); 114 void circlesAccumCenters_gpu(const unsigned int* list, int count, PtrStepi dx, PtrStepi dy, PtrStepSzi accum, int minRadius, int maxRadius, float idp) 121 circlesAccumCenters<<<grid, block>>>(list, count, dx, dy, accum, accum.cols - 2, accum.rows - 2, minRadius, maxRadius, idp); 130 __global__ void buildCentersList(const PtrStepSzi accum, unsigned int* centers, const int threshold) 135 if (x < accum.cols - 2 && y < accum.rows - 2) 137 const int top = accum(y, x + 1) [all...] |
/external/opencv3/samples/python2/ |
gabor_threads.py | 32 accum = np.zeros_like(img) 35 np.maximum(accum, fimg, accum) 36 return accum 39 accum = np.zeros_like(img) 44 np.maximum(accum, fimg, accum) 45 return accum
|
/external/jemalloc/test/unit/ |
atomic.c | 34 t accum = tests[i].accum0; \ 35 assert_##ta##_eq(atomic_read_##p(&accum), \ 39 assert_##ta##_eq(atomic_add_##p(&accum, tests[i].x), \ 41 "i=%u, accum=%"FMT", x=%"FMT, \ 43 assert_##ta##_eq(atomic_read_##p(&accum), accum, \ 46 accum = tests[i].accum0; \ 47 assert_##ta##_eq(atomic_sub_##p(&accum, tests[i].x), \ 49 "i=%u, accum=%"FMT", x=%"FMT, \ 51 assert_##ta##_eq(atomic_read_##p(&accum), accum, [all...] |
/external/pdfium/third_party/lcms2-2.6/src/ |
cmspack.c | 96 register cmsUInt8Number* accum, 109 accum += Extra; 115 v = FROM_8_TO_16(*accum); 118 accum++; 122 accum += Extra; 132 return accum; 143 register cmsUInt8Number* accum, 151 cmsUInt8Number* Init = accum; 154 accum += T_EXTRA(info -> InputFormat) * Stride; 160 cmsUInt16Number v = FROM_8_TO_16(*accum); [all...] |
/external/skia/src/core/ |
SkConvolver.cpp | 129 // Apply the filter to the row to get the destination pixel in |accum|. 130 int accum[4] = {0}; local 133 accum[0] += curFilter * rowToFilter[filterX * 4 + 0]; 134 accum[1] += curFilter * rowToFilter[filterX * 4 + 1]; 135 accum[2] += curFilter * rowToFilter[filterX * 4 + 2]; 137 accum[3] += curFilter * rowToFilter[filterX * 4 + 3]; 143 accum[0] >>= SkConvolutionFilter1D::kShiftBits; 144 accum[1] >>= SkConvolutionFilter1D::kShiftBits; 145 accum[2] >>= SkConvolutionFilter1D::kShiftBits; 147 accum[3] >>= SkConvolutionFilter1D::kShiftBits 208 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 | 54 uint32_t accum = 0; local 78 accum = (accum << 6) | value; 81 out[j++] = (accum >> 16); 83 if (j < outLen) { out[j++] = (accum >> 8) & 0xff; } 84 if (j < outLen) { out[j++] = accum & 0xff; } 86 accum = 0;
|
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/dynamics/ |
Profile.java | 41 float accum; field in class:Profile.ProfileEntry 56 accum = 0; 59 public void accum(float value) { method in class:Profile.ProfileEntry 60 accum += value; 64 record(accum);
|
/frameworks/av/services/audioflinger/ |
AudioResamplerFirProcessNeon.h | 99 int32x4_t accum, accum2; local 101 // (alternative to below) accum = veorq_s32(accum, accum); 102 accum = vdupq_n_s32(0); 135 accum = vmlal_s16(accum, vget_low_s16(posSamp), vget_high_s16(posCoef)); // reversed 136 accum = vmlal_s16(accum, vget_high_s16(posSamp), vget_low_s16(posCoef)); // reversed 137 accum = vmlal_s16(accum, vget_low_s16(negSamp), vget_low_s16(negCoef)) 206 int32x4_t accum, accum2; local 381 float32x4_t accum, accum2; local [all...] |