/external/opencv/cv/src/ |
cvaccum.cpp | 396 CvMat sumstub, *sum = (CvMat*)sumarr; local 405 if( !CV_IS_MAT( mat ) || !CV_IS_MAT( sum )) 409 CV_CALL( sum = cvGetMat( sum, &sumstub, &coi2 )); 414 if( CV_MAT_DEPTH( sum->type ) != CV_32F ) 417 if( !CV_ARE_CNS_EQ( mat, sum )) 420 sumdepth = CV_MAT_DEPTH( sum->type ); 424 if( !CV_ARE_SIZES_EQ( mat, sum )) 431 sum_step = sum->step; 441 if( CV_IS_MAT_CONT( mat->type & sum->type ) 498 CvMat sumstub, *sum = (CvMat*)sq_sum; local 596 CvMat sumstub, *sum = (CvMat*)acc; local 706 CvMat sumstub, *sum = (CvMat*)arrU; local [all...] |
cvsmooth.cpp | 82 sum = 0; 94 sum = 0; 117 sum = 0; 181 s = sum = buf_end + cvAlign((width + ksize.width - 1)*CV_ELEM_SIZE(src_type), ALIGN); 253 int* sum = (int*)state->get_sum_buf(); local 268 int s0 = sum[i] + sp[i], s1 = sum[i+1] + sp[i+1]; 269 sum[i] = s0; sum[i+1] = s1; 273 sum[i] += sp[i] 312 int* sum = (int*)state->get_sum_buf(); local 388 int* sum = (int*)state->get_sum_buf(); local 448 double* sum = (double*)state->get_sum_buf(); local 729 int t = 2*r*r + 2*r, b, sum = 0; local [all...] |
/external/libvpx/libvpx/vp8/common/arm/armv6/ |
vp8_variance8x8_armv6.asm | 31 mov r4, #0 ; initialize sum = 0 49 usad8 r6, r10, lr ; calculate sum of positive differences 50 usad8 r7, r8, lr ; calculate sum of negative differences 52 ; calculate total sum 53 add r4, r4, r6 ; add positive differences to sum 54 sub r4, r4, r7 ; substract negative differences from sum 74 usad8 r6, r10, lr ; calculate sum of positive differences 75 usad8 r7, r8, lr ; calculate sum of negative differences 78 ; calculate total sum 79 add r4, r4, r6 ; add positive differences to sum [all...] |
vp8_variance_halfpixvar16x16_hv_armv6.asm | 32 mov r8, #0 ; initialize sum = 0 67 usad8 r4, r7, lr ; calculate sum of positive differences 68 usad8 r5, r6, lr ; calculate sum of negative differences 70 ; calculate total sum 71 adds r8, r8, r4 ; add positive differences to sum 72 subs r8, r8, r5 ; substract negative differences from sum 108 usad8 r4, r7, lr ; calculate sum of positive differences 109 usad8 r5, r6, lr ; calculate sum of negative differences 112 ; calculate total sum 113 add r8, r8, r4 ; add positive differences to sum [all...] |
/external/chromium_org/third_party/cld/encodings/compact_lang_det/ |
cldutil.cc | 223 // The high 8 bits are a simple sum of all bytes, shifted by 0/1/2/3 bits each 228 uint64 sum; local 235 sum = word0; 240 sum = word0; 243 sum += word1; 249 sum = word0; 252 sum += word1; 256 sum += word1; 262 sum = word0; 265 sum += word1 [all...] |
/external/chromium_org/base/metrics/ |
histogram_samples.cc | 66 sum_ += other.sum(); 73 int64 sum; local 76 if (!iter->ReadInt64(&sum) || !iter->ReadInt(&redundant_count)) 78 sum_ += sum; 86 sum_ -= other.sum();
|
bucket_ranges.cc | 69 static uint32 Crc32(uint32 sum, HistogramBase::Sample value) { 80 sum = kCrcTable[(sum & 0xff) ^ converter.bytes[i]] ^ (sum >> 8); 91 sum += converter.ints[0]; 92 sum = (sum << 16) ^ sum ^ (static_cast<uint32>(converter.ints[1]) << 11); 93 sum += sum >> 11 [all...] |
/external/tcpdump/ |
print-dccp.c | 97 u_int32_t sum; local 116 sum = 0; 118 sum += phu.pa[i]; 123 sum += *sp++; 126 sum += htons((*(const u_int8_t *)sp) << 8); 128 while (sum > 0xffff) 129 sum = (sum & 0xffff) + (sum >> 16); 130 sum = ~sum & 0xffff 285 u_int16_t sum, dccp_sum; local 299 u_int16_t sum, dccp_sum; local [all...] |
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
ton_stab.cpp | 629 Purpose: Verify that the sum of the last (N_FRAME+1) pitch 649 Word16 i, sum; 651 sum = shr(g_pitch, 3); // Division by 8 654 sum = add(sum, st->gp[i]); 657 if (sub(sum, GP_CLIP) > 0) 696 Word16 sum; local 698 sum = shr(g_pitch, 3, pOverflow); /* Division by 8 */ 701 sum = add(sum, st->gp[i], pOverflow) [all...] |
/external/webrtc/src/modules/audio_coding/codecs/isac/main/source/ |
pitch_filter.c | 86 * buffer : a buffer where the sum of previous inputs and outputs 141 double sum; local 155 sum = 0.0; 157 sum += parameters->buffer[pos_lag + m] * parameters->interpol_coeff[m]; 160 parameters->damper_state[0] = parameters->gain * sum; 183 parameters->damper_state_dg[j][0] = parameters->gain_mult[j] * sum + 189 sum = 0.0; 191 sum -= parameters->damper_state_dg[j][m] * kDampFilter[m]; 193 out_dg[j][parameters->index] = sum; 197 sum = 0.0 [all...] |
/external/speex/libspeex/ |
ltp_bfin.h | 39 spx_word32_t sum=0; local 58 : "=m" (sum) 62 return sum; 114 spx_word32_t sum; local 148 : "=&D" (sum), "=a" (C) 152 return sum; 317 spx_word32_t sum=0; local 382 if (sum>best_sum && gain_sum<=max_gain) ------ (1) 384 if (sum>best_sum && !(gain_sum>max_gain)) ------ (2) 387 sum = -VERY_LARGE32 [all...] |
/external/srec/srec/cfront/ |
wav_acc.c | 84 ws->sum = 0; 135 mean = ((float)ws->sum + (float)ws->sum2 * OVERFLOW_MASK) / ws->nsam; 200 ws->sum += val; 220 if (ws->sum >= OVERFLOW_MASK) 222 ws->sum -= OVERFLOW_MASK; 225 else if (ws->sum < -OVERFLOW_MASK) 227 ws->sum += OVERFLOW_MASK;
|
/external/ppp/pppd/plugins/rp-pppoe/ |
common.c | 193 UINT32_t sum = 0; local 208 sum += * (UINT16_t *) pseudoHeader; 209 sum += * ((UINT16_t *) (pseudoHeader+2)); 210 sum += * ((UINT16_t *) (pseudoHeader+4)); 211 sum += * ((UINT16_t *) (pseudoHeader+6)); 212 sum += * ((UINT16_t *) (pseudoHeader+8)); 213 sum += * ((UINT16_t *) (pseudoHeader+10)); 217 sum += * (UINT16_t *) addr; 222 sum += *addr; 225 while(sum >> 16) [all...] |
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/arm11/vc/m4p10/src/ |
omxVCM4P10_PredictIntra_16x16_s.s | 50 sum RN 6 label 210 UADD16 tVal2, tVal2, tVal8 ;// sum(pSrcAbove[0] to pSrcAbove[7]) 218 UADD16 tVal8, tVal8, tVal10 ;// sum(pSrcAbove[8] to pSrcAbove[15]) 220 UADD16 tVal2, tVal2, tVal8 ;// sum(pSrcAbove[0] to pSrcAbove[15]) 224 ADD tVal2, tVal2, tVal2, LSR #16 ;// sum(pSrcAbove[0] to pSrcAbove[15]) 228 UXTH sum, tVal2 ;// Extract the lower half for result 248 ADD sum, tVal7, tVal6 ;// sum = tVal8 + tVal10 258 ADD sum, sum, tVal7 ;// sum = sum + tVal [all...] |
/external/libvpx/libvpx/vp8/common/ppc/ |
variance_altivec.asm | 51 ;# Compute sum first. Unpack to so signed subract 96 stw r3, 0(r8) ;# sum 100 mullw r3, r3, r3 ;# sum*sum 101 srlwi r3, r3, \DS ;# (sum*sum) >> DS 102 subf r3, r3, r4 ;# sse - ((sum*sum) >> DS) 140 stw r3, 0(r8) ;# sum 144 mullw r3, r3, r3 ;# sum*su [all...] |
/external/aac/libFDK/include/ |
fixpoint_math.h | 408 * \return saturated sum of a and b. 412 LONG sum; local 414 sum = (LONG)(SHORT)a + (LONG)(SHORT)b; 415 sum = fMax(fMin((INT)sum, (INT)MAXVAL_SGL), (INT)MINVAL_SGL); 416 return (FIXP_SGL)(SHORT)sum; 423 * \return saturated sum of a and b. 427 LONG sum; local 429 sum = (LONG)(a>>1) + (LONG)(b>>1); 430 sum = fMax(fMin((INT)sum, (INT)(MAXVAL_DBL>>1)), (INT)(MINVAL_DBL>>1)) [all...] |
/external/chromium_org/v8/test/mjsunit/ |
array-reduce.js | 100 function sum(a, b) { return a + b; } function 113 simpleArray, sum, 0); 134 testReduce("reduce", "EmptyReduceSum", 0, [], [], sum, 0); 139 testReduce("reduce", "EmptyReduceSumNoInit", 0, [], [0], sum); 150 simpleSparseArray, sum, 0); 171 testReduce("reduce", "EmptySparseReduceSumNoInit", 0, [], [,,0,,], sum); 191 verySparseArray, sum, 0); 216 verySparseArray, sum); 241 simpleArray, sum, 0); 262 testReduce("reduceRight", "EmptyReduceRightSum", 0, [], [], sum, 0) [all...] |
/external/v8/test/mjsunit/ |
array-reduce.js | 100 function sum(a, b) { return a + b; } function 113 simpleArray, sum, 0); 134 testReduce("reduce", "EmptyReduceSum", 0, [], [], sum, 0); 139 testReduce("reduce", "EmptyReduceSumNoInit", 0, [], [0], sum); 150 simpleSparseArray, sum, 0); 171 testReduce("reduce", "EmptySparseReduceSumNoInit", 0, [], [,,0,,], sum); 191 verySparseArray, sum, 0); 216 verySparseArray, sum); 241 simpleArray, sum, 0); 262 testReduce("reduceRight", "EmptyReduceRightSum", 0, [], [], sum, 0) [all...] |
/external/eigen/test/ |
array_for_matrix.cpp | 45 VERIFY_IS_MUCH_SMALLER_THAN(m1.colwise().sum().sum() - m1.sum(), m1.cwiseAbs().maxCoeff()); 46 VERIFY_IS_MUCH_SMALLER_THAN(m1.rowwise().sum().sum() - m1.sum(), m1.cwiseAbs().maxCoeff()); 47 VERIFY_IS_MUCH_SMALLER_THAN(m1.colwise().sum() + m2.colwise().sum() - (m1+m2).colwise().sum(), (m1+m2).cwiseAbs().maxCoeff()); 48 VERIFY_IS_MUCH_SMALLER_THAN(m1.rowwise().sum() - m2.rowwise().sum() - (m1-m2).rowwise().sum(), (m1-m2).cwiseAbs().maxCoeff()) [all...] |
/development/samples/ApiDemos/src/com/example/android/apis/graphics/ |
SensorTest.java | 47 float sum = 0; local 49 sum += weights[i]; 51 mWeightScale = 1 / sum; 66 float sum = 0; local 68 sum += mWeights[i] * mSamples[index]; 74 return sum * mWeightScale;
|
/external/eigen/Eigen/src/Core/ |
Fuzzy.h | 27 return (nested - otherNested).cwiseAbs2().sum() <= prec * prec * (min)(nested.cwiseAbs2().sum(), otherNested.cwiseAbs2().sum()); 45 return x.cwiseAbs2().sum() <= abs2(prec) * y.cwiseAbs2().sum(); 63 return x.cwiseAbs2().sum() <= abs2(prec * y);
|
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/ |
histogram.rs | 49 int sum = 0; 51 sum += rsGetElementAt_int(gSums, x, i); 53 return sum;
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/Misc/ |
Stats.cs | 108 double sum = 0.0; 110 sum += i; 112 return sum / X.Count;
|
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/ |
realloc_unittest.cc | 107 int sum = 0; local 116 sum += p[i][1000]; 119 CHECK_EQ(kNumEntries/2 * (kNumEntries - 1), sum); // assume kNE is even
|
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/ |
realloc_unittest.cc | 107 int sum = 0; local 116 sum += p[i][1000]; 119 CHECK_EQ(kNumEntries/2 * (kNumEntries - 1), sum); // assume kNE is even
|