/external/webrtc/webrtc/base/ |
D | rollingaccumulator_unittest.cc | 23 RollingAccumulator<int> accum(10); in TEST() local 25 EXPECT_EQ(0U, accum.count()); in TEST() 26 EXPECT_DOUBLE_EQ(0.0, accum.ComputeMean()); in TEST() 27 EXPECT_DOUBLE_EQ(0.0, accum.ComputeVariance()); in TEST() 28 EXPECT_EQ(0, accum.ComputeMin()); in TEST() 29 EXPECT_EQ(0, accum.ComputeMax()); in TEST() 33 RollingAccumulator<int> accum(10); in TEST() local 35 accum.AddSample(i); in TEST() 38 EXPECT_EQ(4U, accum.count()); in TEST() 39 EXPECT_EQ(6, accum.ComputeSum()); in TEST() [all …]
|
/external/pdfium/third_party/lcms2-2.6/src/ |
D | cmspack.c | 96 register cmsUInt8Number* accum, in UnrollChunkyBytes() argument 109 accum += Extra; in UnrollChunkyBytes() 115 v = FROM_8_TO_16(*accum); in UnrollChunkyBytes() 118 accum++; in UnrollChunkyBytes() 122 accum += Extra; in UnrollChunkyBytes() 132 return accum; in UnrollChunkyBytes() 143 register cmsUInt8Number* accum, in UnrollPlanarBytes() argument 151 cmsUInt8Number* Init = accum; in UnrollPlanarBytes() 154 accum += T_EXTRA(info -> InputFormat) * Stride; in UnrollPlanarBytes() 160 cmsUInt16Number v = FROM_8_TO_16(*accum); in UnrollPlanarBytes() [all …]
|
D | cmsxform.c | 209 cmsUInt8Number* accum; in FloatXFORM() local 215 accum = (cmsUInt8Number*) in; in FloatXFORM() 220 accum = p -> FromInputFloat(p, fIn, accum, Stride); in FloatXFORM() 260 cmsUInt8Number* accum; in NullFloatXFORM() local 265 accum = (cmsUInt8Number*) in; in NullFloatXFORM() 271 accum = p -> FromInputFloat(p, fIn, accum, Stride); in NullFloatXFORM() 284 cmsUInt8Number* accum; in NullXFORM() local 289 accum = (cmsUInt8Number*) in; in NullXFORM() 295 accum = p -> FromInput(p, wIn, accum, Stride); in NullXFORM() 307 register cmsUInt8Number* accum; in PrecalculatedXFORM() local [all …]
|
/external/opencv3/modules/cudaimgproc/src/cuda/ |
D | hough_lines.cu | 61 …__global__ void linesAccumGlobal(const unsigned int* list, const int count, PtrStepi accum, const … in linesAccumGlobal() argument 74 int* accumRow = accum.ptr(n + 1); in linesAccumGlobal() 89 …__global__ void linesAccumShared(const unsigned int* list, const int count, PtrStepi accum, const … in linesAccumShared() argument 124 int* accumRow = accum.ptr(n + 1); in linesAccumShared() 129 …void linesAccum_gpu(const unsigned int* list, int count, PtrStepSzi accum, float rho, float theta,… in linesAccum_gpu() argument 132 const dim3 grid(accum.rows - 2); in linesAccum_gpu() 134 size_t smemSize = (accum.cols - 1) * sizeof(int); in linesAccum_gpu() 137 …linesAccumShared<<<grid, block, smemSize>>>(list, count, accum, 1.0f / rho, theta, accum.cols - 2); in linesAccum_gpu() 139 … linesAccumGlobal<<<grid, block>>>(list, count, accum, 1.0f / rho, theta, accum.cols - 2); in linesAccum_gpu() 149 …__global__ void linesGetResult(const PtrStepSzi accum, float2* out, int* votes, const int maxSize,… in linesGetResult() argument [all …]
|
D | hough_circles.cu | 63 …PtrStepi accum, const int width, const int height, const int minRadius, const int maxRadius, const… in circlesAccumCenters() argument 106 ::atomicAdd(accum.ptr(y2 + 1) + x2 + 1, 1); in circlesAccumCenters() 114 …const unsigned int* list, int count, PtrStepi dx, PtrStepi dy, PtrStepSzi accum, int minRadius, in… in circlesAccumCenters_gpu() argument 121 …circlesAccumCenters<<<grid, block>>>(list, count, dx, dy, accum, accum.cols - 2, accum.rows - 2, m… in circlesAccumCenters_gpu() 130 …__global__ void buildCentersList(const PtrStepSzi accum, unsigned int* centers, const int threshol… in buildCentersList() argument 135 if (x < accum.cols - 2 && y < accum.rows - 2) in buildCentersList() 137 const int top = accum(y, x + 1); in buildCentersList() 139 const int left = accum(y + 1, x); in buildCentersList() 140 const int cur = accum(y + 1, x + 1); in buildCentersList() 141 const int right = accum(y + 1, x + 2); in buildCentersList() [all …]
|
D | hough_segments.cu | 56 __global__ void houghLinesProbabilistic(const PtrStepSzi accum, in houghLinesProbabilistic() argument 65 if (r >= accum.cols - 2 || n >= accum.rows - 2) in houghLinesProbabilistic() 68 const int curVotes = accum(n + 1, r + 1); in houghLinesProbabilistic() 71 curVotes > accum(n, r) && in houghLinesProbabilistic() 72 curVotes > accum(n, r + 1) && in houghLinesProbabilistic() 73 curVotes > accum(n, r + 2) && in houghLinesProbabilistic() 74 curVotes > accum(n + 1, r) && in houghLinesProbabilistic() 75 curVotes > accum(n + 1, r + 2) && in houghLinesProbabilistic() 76 curVotes > accum(n + 2, r) && in houghLinesProbabilistic() 77 curVotes > accum(n + 2, r + 1) && in houghLinesProbabilistic() [all …]
|
/external/skia/src/core/ |
D | SkConvolver.cpp | 130 int accum[4] = {0}; in ConvolveHorizontally() local 133 accum[0] += curFilter * rowToFilter[filterX * 4 + 0]; in ConvolveHorizontally() 134 accum[1] += curFilter * rowToFilter[filterX * 4 + 1]; in ConvolveHorizontally() 135 accum[2] += curFilter * rowToFilter[filterX * 4 + 2]; in ConvolveHorizontally() 137 accum[3] += curFilter * rowToFilter[filterX * 4 + 3]; in ConvolveHorizontally() 143 accum[0] >>= SkConvolutionFilter1D::kShiftBits; in ConvolveHorizontally() 144 accum[1] >>= SkConvolutionFilter1D::kShiftBits; in ConvolveHorizontally() 145 accum[2] >>= SkConvolutionFilter1D::kShiftBits; in ConvolveHorizontally() 147 accum[3] >>= SkConvolutionFilter1D::kShiftBits; in ConvolveHorizontally() 151 outRow[outX * 4 + 0] = ClampTo8(accum[0]); in ConvolveHorizontally() [all …]
|
/external/jemalloc/test/unit/ |
D | 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), \ 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), \ 51 assert_##ta##_eq(atomic_read_##p(&accum), accum, \ 54 accum = tests[i].accum0; \ 55 err = atomic_cas_##p(&accum, tests[i].x, tests[i].s); \ 58 assert_##ta##_eq(accum, err ? tests[i].accum0 : \ [all …]
|
/external/tcpdump/ |
D | checksum.c | 95 register uint16_t accum; in init_crc10_table() local 100 accum = ((unsigned short) i << 2); in init_crc10_table() 103 if ((accum <<= 1) & 0x400) accum ^= CRC10_POLYNOMIAL; in init_crc10_table() 105 verify_crc10_table[i] = accum; in init_crc10_table() 114 verify_crc10_cksum(uint16_t accum, const u_char *p, int length) in verify_crc10_cksum() argument 120 accum = ((accum << 8) & 0x3ff) in verify_crc10_cksum() 121 ^ crc10_table[( accum >> 2) & 0xff] in verify_crc10_cksum() 124 return accum; in verify_crc10_cksum()
|
/external/skia/src/opts/ |
D | SkBitmapFilter_opts_SSE2.cpp | 66 __m128i accum = _mm_setzero_si128(); in convolveHorizontally_SSE2() local 95 accum = _mm_add_epi32(accum, t); in convolveHorizontally_SSE2() 98 accum = _mm_add_epi32(accum, t); in convolveHorizontally_SSE2() 113 accum = _mm_add_epi32(accum, t); in convolveHorizontally_SSE2() 116 accum = _mm_add_epi32(accum, t); in convolveHorizontally_SSE2() 144 accum = _mm_add_epi32(accum, t); in convolveHorizontally_SSE2() 146 accum = _mm_add_epi32(accum, t); in convolveHorizontally_SSE2() 154 accum = _mm_add_epi32(accum, t); in convolveHorizontally_SSE2() 158 accum = _mm_srai_epi32(accum, SkConvolutionFilter1D::kShiftBits); in convolveHorizontally_SSE2() 161 accum = _mm_packs_epi32(accum, zero); in convolveHorizontally_SSE2() [all …]
|
D | SkBitmapProcState_arm_neon.cpp | 109 int32x4_t accum = vdupq_n_s32(0); in convolveHorizontally_neon() local 134 accum += p0; in convolveHorizontally_neon() 135 accum += p1; in convolveHorizontally_neon() 136 accum += p2; in convolveHorizontally_neon() 137 accum += p3; in convolveHorizontally_neon() 167 accum += p0; in convolveHorizontally_neon() 168 accum += p1; in convolveHorizontally_neon() 169 accum += p2; in convolveHorizontally_neon() 174 accum = vshrq_n_s32(accum, SkConvolutionFilter1D::kShiftBits); in convolveHorizontally_neon() 177 int16x4_t accum16 = vqmovn_s32(accum); in convolveHorizontally_neon() [all …]
|
/external/clang/test/CodeGen/ |
D | vector.c | 32 __m64 accum = _mm_setzero_si64(); in test4() local 35 accum = _mm_add_pi32(p[i], accum); in test4() 37 __m64 accum2 = _mm_unpackhi_pi32(accum, accum); in test4() 38 accum = _mm_add_pi32(accum, accum2); in test4() 40 int result = _mm_cvtsi64_si32(accum); in test4()
|
D | arm64_neon_high_half.c | 96 int16x8_t test_vabal_high_s8(int16x8_t accum, int8x16_t lhs, int8x16_t rhs) { in test_vabal_high_s8() argument 98 return vabal_high_s8(accum, lhs, rhs); in test_vabal_high_s8() 101 int32x4_t test_vabal_high_s16(int32x4_t accum, int16x8_t lhs, int16x8_t rhs) { in test_vabal_high_s16() argument 103 return vabal_high_s16(accum, lhs, rhs); in test_vabal_high_s16() 106 int64x2_t test_vabal_high_s32(int64x2_t accum, int32x4_t lhs, int32x4_t rhs) { in test_vabal_high_s32() argument 108 return vabal_high_s32(accum, lhs, rhs); in test_vabal_high_s32() 111 uint16x8_t test_vabal_high_u8(uint16x8_t accum, uint8x16_t lhs, uint8x16_t rhs) { in test_vabal_high_u8() argument 113 return vabal_high_u8(accum, lhs, rhs); in test_vabal_high_u8() 116 uint32x4_t test_vabal_high_u16(uint32x4_t accum, uint16x8_t lhs, uint16x8_t rhs) { in test_vabal_high_u16() argument 118 return vabal_high_u16(accum, lhs, rhs); in test_vabal_high_u16() [all …]
|
D | arm-neon-fma.c | 11 float32x2_t test_fma_order(float32x2_t accum, float32x2_t lhs, float32x2_t rhs) { in test_fma_order() argument 12 return vfma_f32(accum, lhs, rhs); in test_fma_order() 16 float32x4_t test_fmaq_order(float32x4_t accum, float32x4_t lhs, float32x4_t rhs) { in test_fmaq_order() argument 17 return vfmaq_f32(accum, lhs, rhs); in test_fmaq_order()
|
/external/opencv3/samples/python2/ |
D | 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/opencv3/modules/imgproc/src/opencl/ |
D | hough_lines.cl | 72 … __global int* accum = (__global int*)(accum_ptr + mad24(theta_idx + 1, accum_step, accum_offset)); 84 atomic_inc(accum + r + 1); 126 … __global int* accum = (__global int*)(accum_ptr + mad24(theta_idx, accum_step, accum_offset)); 128 accum[i] = l_accum[i]; 132 … __global int* accum = (__global int*)(accum_ptr + mad24(theta_idx, accum_step, accum_offset)); 134 accum[i] = 0; 150 …__global uchar* accum = accum_ptr + mad24(y+1, accum_step, mad24(x0+1, (int) sizeof(int), accum_of… 156 int curVote = ACCUM(accum); 158 …if (curVote > threshold && curVote > ACCUM(accum - sizeof(int)) && curVote >= ACCUM(accum + sizeof… 159 curVote > ACCUM(accum - accum_step) && curVote >= ACCUM(accum + accum_step)) [all …]
|
/external/webp/src/dsp/ |
D | rescaler.c | 38 int accum = wrk->x_add; in WebPRescalerImportRowExpandC() local 43 wrk->frow[x_out] = right * wrk->x_add + (left - right) * accum; in WebPRescalerImportRowExpandC() 46 accum -= wrk->x_sub; in WebPRescalerImportRowExpandC() 47 if (accum < 0) { in WebPRescalerImportRowExpandC() 52 accum += wrk->x_add; in WebPRescalerImportRowExpandC() 55 assert(wrk->x_sub == 0 /* <- special case for src_width=1 */ || accum == 0); in WebPRescalerImportRowExpandC() 69 int accum = 0; in WebPRescalerImportRowShrinkC() local 72 accum += wrk->x_add; in WebPRescalerImportRowShrinkC() 73 while (accum > 0) { in WebPRescalerImportRowShrinkC() 74 accum -= wrk->x_sub; in WebPRescalerImportRowShrinkC() [all …]
|
D | rescaler_sse2.c | 49 int accum = x_add; in RescalerImportRowExpandSSE2() local 62 const __m128i mult = _mm_set1_epi32(((x_add - accum) << 16) | accum); in RescalerImportRowExpandSSE2() 67 accum -= wrk->x_sub; in RescalerImportRowExpandSSE2() 68 if (accum < 0) { in RescalerImportRowExpandSSE2() 71 accum += x_add; in RescalerImportRowExpandSSE2() 85 const __m128i mult = _mm_cvtsi32_si128(((x_add - accum) << 16) | accum); in RescalerImportRowExpandSSE2() 91 accum -= wrk->x_sub; in RescalerImportRowExpandSSE2() 92 if (accum < 0) { in RescalerImportRowExpandSSE2() 105 accum += x_add; in RescalerImportRowExpandSSE2() 109 assert(accum == 0); in RescalerImportRowExpandSSE2() [all …]
|
/external/libvpx/libvpx/vp9/common/ |
D | vp9_thread_common.c | 319 void vp9_accumulate_frame_counts(FRAME_COUNTS *accum, in vp9_accumulate_frame_counts() argument 325 accum->y_mode[i][j] += counts->y_mode[i][j]; in vp9_accumulate_frame_counts() 329 accum->uv_mode[i][j] += counts->uv_mode[i][j]; in vp9_accumulate_frame_counts() 333 accum->partition[i][j] += counts->partition[i][j]; in vp9_accumulate_frame_counts() 342 accum->eob_branch[i][j][k][l][m] += in vp9_accumulate_frame_counts() 345 accum->coef[i][j][k][l][m][n] += in vp9_accumulate_frame_counts() 354 accum->eob_branch[i][j][k][l][m] += in vp9_accumulate_frame_counts() 365 accum->switchable_interp[i][j] += counts->switchable_interp[i][j]; in vp9_accumulate_frame_counts() 369 accum->inter_mode[i][j] += counts->inter_mode[i][j]; in vp9_accumulate_frame_counts() 373 accum->intra_inter[i][j] += counts->intra_inter[i][j]; in vp9_accumulate_frame_counts() [all …]
|
/external/opencv3/3rdparty/libwebp/utils/ |
D | rescaler.c | 60 int accum = 0; in WebPRescalerImportRow() local 64 accum += wrk->x_add; in WebPRescalerImportRow() 65 for (; accum > 0; accum -= wrk->x_sub) { in WebPRescalerImportRow() 71 const int32_t frac = base * (-accum); in WebPRescalerImportRow() 81 if (accum < 0) { in WebPRescalerImportRow() 85 accum += wrk->x_add; in WebPRescalerImportRow() 87 wrk->frow[x_out] = right * wrk->x_add + (left - right) * accum; in WebPRescalerImportRow() 88 accum -= wrk->x_sub; in WebPRescalerImportRow()
|
/external/flac/libFLAC/ |
D | bitwriter.c | 75 uint32_t accum; /* accumulator; bits are right-justified; when full, accum is appended to buffer */ member 193 fprintf(out, "%01u", bw->accum & (1 << (bw->bits-j-1)) ? 1:0); in FLAC__bitwriter_dump() 251 bw->buffer[bw->words] = SWAP_BE_WORD_TO_HOST(bw->accum << (FLAC__BITS_PER_WORD-bw->bits)); in FLAC__bitwriter_get_buffer() 282 bw->accum <<= n; in FLAC__bitwriter_write_zeroes() 286 bw->buffer[bw->words++] = SWAP_BE_WORD_TO_HOST(bw->accum); in FLAC__bitwriter_write_zeroes() 299 bw->accum = 0; in FLAC__bitwriter_write_zeroes() 325 bw->accum <<= bits; in FLAC__bitwriter_write_raw_uint32() 326 bw->accum |= val; in FLAC__bitwriter_write_raw_uint32() 330 bw->accum <<= left; in FLAC__bitwriter_write_raw_uint32() 331 bw->accum |= val >> (bw->bits = bits - left); in FLAC__bitwriter_write_raw_uint32() [all …]
|
/external/speex/libspeex/ |
D | resample.c | 352 float accum[4] = {0,0,0,0}; in resampler_basic_direct_single() local 355 accum[0] += sinc[j]*iptr[j]; in resampler_basic_direct_single() 356 accum[1] += sinc[j+1]*iptr[j+1]; in resampler_basic_direct_single() 357 accum[2] += sinc[j+2]*iptr[j+2]; in resampler_basic_direct_single() 358 accum[3] += sinc[j+3]*iptr[j+3]; in resampler_basic_direct_single() 360 sum = accum[0] + accum[1] + accum[2] + accum[3]; in resampler_basic_direct_single() 404 double accum[4] = {0,0,0,0}; in resampler_basic_direct_double() local 407 accum[0] += sinc[j]*iptr[j]; in resampler_basic_direct_double() 408 accum[1] += sinc[j+1]*iptr[j+1]; in resampler_basic_direct_double() 409 accum[2] += sinc[j+2]*iptr[j+2]; in resampler_basic_direct_double() [all …]
|
/external/opencv/cv/src/ |
D | cvhough.cpp | 88 int *accum = 0; in CV_IMPLEMENT_QSORT_EX() local 117 CV_CALL( accum = (int*)cvAlloc( sizeof(accum[0]) * (numangle+2) * (numrho+2) )); in CV_IMPLEMENT_QSORT_EX() 118 CV_CALL( sort_buf = (int*)cvAlloc( sizeof(accum[0]) * numangle * numrho )); in CV_IMPLEMENT_QSORT_EX() 121 memset( accum, 0, sizeof(accum[0]) * (numangle+2) * (numrho+2) ); in CV_IMPLEMENT_QSORT_EX() 138 accum[(n+1) * (numrho+2) + r+1]++; in CV_IMPLEMENT_QSORT_EX() 147 if( accum[base] > threshold && in CV_IMPLEMENT_QSORT_EX() 148 accum[base] > accum[base - 1] && accum[base] >= accum[base + 1] && in CV_IMPLEMENT_QSORT_EX() 149 accum[base] > accum[base - numrho - 2] && accum[base] >= accum[base + numrho + 2] ) in CV_IMPLEMENT_QSORT_EX() 154 icvHoughSortDescent32s( sort_buf, total, accum ); in CV_IMPLEMENT_QSORT_EX() 175 cvFree( &accum ); in CV_IMPLEMENT_QSORT_EX() [all …]
|
/external/apache-commons-math/src/main/java/org/apache/commons/math/stat/descriptive/moment/ |
D | Variance.java | 397 double accum = 0.0; in evaluate() local 402 accum += dev * dev; in evaluate() 407 var = (accum - (accum2 * accum2 / len)) / (len - 1.0); in evaluate() 409 var = (accum - (accum2 * accum2 / len)) / len; in evaluate() 499 double accum = 0.0; in evaluate() local 504 accum += weights[i] * (dev * dev); in evaluate() 514 var = (accum - (accum2 * accum2 / sumWts)) / (sumWts - 1.0); in evaluate() 516 var = (accum - (accum2 * accum2 / sumWts)) / sumWts; in evaluate()
|
/external/libgdx/extensions/gdx-box2d/gdx-box2d-gwt/src/com/badlogic/gdx/physics/box2d/gwt/emu/org/jbox2d/dynamics/ |
D | Profile.java | 41 float accum; field in Profile.ProfileEntry 56 accum = 0; in startAccum() 59 public void accum(float value) { in accum() method in Profile.ProfileEntry 60 accum += value; in accum() 64 record(accum); in endAccum()
|