Home
last modified time | relevance | path

Searched refs:sum2 (Results 1 – 25 of 111) sorted by relevance

12345

/external/rust/crates/libz-sys/src/zlib-ng/
Dadler32_p.h15 #define DO1(sum1, sum2, buf, i) {(sum1) += buf[(i)]; (sum2) += (sum1);} argument
16 #define DO2(sum1, sum2, buf, i) {DO1(sum1, sum2, buf, i); DO1(sum1, sum2, buf, i+1);} argument
17 #define DO4(sum1, sum2, buf, i) {DO2(sum1, sum2, buf, i); DO2(sum1, sum2, buf, i+2);} argument
18 #define DO8(sum1, sum2, buf, i) {DO4(sum1, sum2, buf, i); DO4(sum1, sum2, buf, i+4);} argument
19 #define DO16(sum1, sum2, buf) {DO8(sum1, sum2, buf, 0); DO8(sum1, sum2, buf, 8);} argument
21 static inline uint32_t adler32_len_1(uint32_t adler, const unsigned char *buf, uint32_t sum2) { in adler32_len_1() argument
24 sum2 += adler; in adler32_len_1()
25 sum2 %= BASE; in adler32_len_1()
26 return adler | (sum2 << 16); in adler32_len_1()
29 …line uint32_t adler32_len_16(uint32_t adler, const unsigned char *buf, size_t len, uint32_t sum2) { in adler32_len_16() argument
[all …]
Dadler32.c12 uint32_t sum2; in adler32_c() local
16 sum2 = (adler >> 16) & 0xffff; in adler32_c()
21 return adler32_len_1(adler, buf, sum2); in adler32_c()
29 return adler32_len_16(adler, buf, len, sum2); in adler32_c()
41 DO16(adler, sum2, buf); /* 16 sums unrolled */ in adler32_c()
44 DO8(adler, sum2, buf, 0); /* 8 sums unrolled */ in adler32_c()
49 sum2 %= BASE; in adler32_c()
53 return adler32_len_64(adler, buf, len, sum2); in adler32_c()
80 uint32_t sum2; in adler32_combine_() local
91 sum2 = rem * sum1; in adler32_combine_()
[all …]
/external/python/cpython2/Modules/zlib/
Dadler32.c16 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;}
68 unsigned long sum2; local
72 sum2 = (adler >> 16) & 0xffff;
80 sum2 += adler;
81 if (sum2 >= BASE)
82 sum2 -= BASE;
83 return adler | (sum2 << 16);
94 sum2 += adler;
98 MOD28(sum2); /* only added so many BASE's */
99 return adler | (sum2 << 16);
[all …]
/external/rust/crates/libz-sys/src/zlib/
Dadler32.c16 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;}
68 unsigned long sum2; local
72 sum2 = (adler >> 16) & 0xffff;
80 sum2 += adler;
81 if (sum2 >= BASE)
82 sum2 -= BASE;
83 return adler | (sum2 << 16);
94 sum2 += adler;
98 MOD28(sum2); /* only added so many BASE's */
99 return adler | (sum2 << 16);
[all …]
/external/freetype/src/gzip/
Dadler32.c18 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;}
70 unsigned long sum2; in adler32_z() local
74 sum2 = (adler >> 16) & 0xffff; in adler32_z()
82 sum2 += adler; in adler32_z()
83 if (sum2 >= BASE) in adler32_z()
84 sum2 -= BASE; in adler32_z()
85 return adler | (sum2 << 16); in adler32_z()
96 sum2 += adler; in adler32_z()
100 MOD28(sum2); /* only added so many BASE's */ in adler32_z()
101 return adler | (sum2 << 16); in adler32_z()
[all …]
/external/libwebsockets/win32port/zlib/
Dadler32.c18 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;}
65 unsigned long sum2; local
69 sum2 = (adler >> 16) & 0xffff;
77 sum2 += adler;
78 if (sum2 >= BASE)
79 sum2 -= BASE;
80 return adler | (sum2 << 16);
91 sum2 += adler;
95 MOD4(sum2); /* only added so many BASE's */
96 return adler | (sum2 << 16);
[all …]
/external/tflite-support/third_party/zlib/
Dadler32.c16 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;}
73 unsigned long sum2; local
85 sum2 = (adler >> 16) & 0xffff;
93 sum2 += adler;
94 if (sum2 >= BASE)
95 sum2 -= BASE;
96 return adler | (sum2 << 16);
122 sum2 += adler;
126 MOD28(sum2); /* only added so many BASE's */
127 return adler | (sum2 << 16);
[all …]
/external/zlib/
Dadler32.c16 #define DO1(buf,i) {adler += (buf)[i]; sum2 += adler;}
73 unsigned long sum2; local
85 sum2 = (adler >> 16) & 0xffff;
93 sum2 += adler;
94 if (sum2 >= BASE)
95 sum2 -= BASE;
96 return adler | (sum2 << 16);
122 sum2 += adler;
126 MOD28(sum2); /* only added so many BASE's */
127 return adler | (sum2 << 16);
[all …]
/external/libopus/celt/x86/
Dpitch_sse4_1.c117 __m128i sum0, sum1, sum2, sum3, vecSum; in xcorr_kernel_sse4_1() local
132 sum2 = _mm_setzero_si128(); in xcorr_kernel_sse4_1()
145 sum2 = _mm_add_epi32(sum2, _mm_madd_epi16(vecX, vecY2)); in xcorr_kernel_sse4_1()
155 sum2 = _mm_add_epi32(sum2, _mm_unpackhi_epi64( sum2, sum2)); in xcorr_kernel_sse4_1()
156 sum2 = _mm_add_epi32(sum2, _mm_shufflelo_epi16( sum2, 0x0E)); in xcorr_kernel_sse4_1()
162 _mm_unpacklo_epi32(sum2, sum3)); in xcorr_kernel_sse4_1()
179 sum2 = _mm_mullo_epi32(vecX2, vecY2); in xcorr_kernel_sse4_1()
183 sum2 = _mm_add_epi32(sum2, sum3); in xcorr_kernel_sse4_1()
185 vecSum = _mm_add_epi32(vecSum, sum2); in xcorr_kernel_sse4_1()
201 sum2 = _mm_mullo_epi32(vecX2, vecY2); in xcorr_kernel_sse4_1()
[all …]
/external/webrtc/common_audio/signal_processing/
Dcross_correlation_neon.c56 int64_t sum2 = vaddvq_s64(sum0); in DotProductWithScaleNeon() local
57 *cross_correlation = (int32_t)((sum2 + sum_res) >> scaling); in DotProductWithScaleNeon()
60 int64x1_t sum2 = vadd_s64(vget_low_s64(sum0), vget_high_s64(sum0)); in DotProductWithScaleNeon() local
61 sum2 = vadd_s64(sum2, vdup_n_s64(sum_res)); in DotProductWithScaleNeon()
62 sum2 = vshl_s64(sum2, shift); in DotProductWithScaleNeon()
63 vst1_lane_s32(cross_correlation, vreinterpret_s32_s64(sum2), 0); in DotProductWithScaleNeon()
/external/rust/crates/libz-sys/src/zlib-ng/arch/x86/
Dadler32_avx2_p.h15 __m128i sum2 = _mm_add_epi32(sum1, _mm_unpackhi_epi64(sum1, sum1)); in hsum256() local
16 __m128i sum3 = _mm_add_epi32(sum2, _mm_shuffle_epi32(sum2, 1)); in hsum256()
26 __m128i sum2 = _mm_add_epi32(non_zero_sse,_mm_unpackhi_epi64(non_zero_sse, non_zero_sse)); in partial_hsum256() local
27 __m128i sum3 = _mm_add_epi32(sum2, _mm_shuffle_epi32(sum2, 1)); in partial_hsum256()
Dadler32_ssse3.c18 uint32_t sum2; in adler32_ssse3() local
21 sum2 = (adler >> 16) & 0xffff; in adler32_ssse3()
26 return adler32_len_1(adler, buf, sum2); in adler32_ssse3()
34 return adler32_len_16(adler, buf, len, sum2); in adler32_ssse3()
63 vs2 = _mm_cvtsi32_si128(sum2); in adler32_ssse3()
71 sum2 += adler; in adler32_ssse3()
83 vs2 = _mm_cvtsi32_si128(sum2); in adler32_ssse3()
148 sum2 = hsum(vs2) % BASE; in adler32_ssse3()
153 return adler32_len_16(adler, buf, len, sum2); in adler32_ssse3()
Dadler32_avx512_p.h17 __m128i sum2 = _mm_add_epi32(sum1, c_plus_d); in _mm512_reduce_add_epu32() local
18 __m128i sum3 = _mm_shuffle_epi32(sum2, 0x01); in _mm512_reduce_add_epu32()
19 __m128i sum4 = _mm_add_epi32(sum2, sum3); in _mm512_reduce_add_epu32()
41 __m128i sum2 = _mm_add_epi32(sum1,_mm_unpackhi_epi64(sum1, sum1)); in partial_hsum() local
42 __m128i sum3 = _mm_add_epi32(sum2,_mm_shuffle_epi32(sum2, 1)); in partial_hsum()
Dadler32_ssse3_p.h22 __m128i sum2 = _mm_add_epi32(x, sum1); in hsum() local
23 __m128i sum3 = _mm_shuffle_epi32(sum2, 0x01); in hsum()
24 __m128i sum4 = _mm_add_epi32(sum2, sum3); in hsum()
/external/llvm/test/Transforms/MergeFunc/
Dconstant-entire-value.ll11 %sum2 = add i32 %sum, %1
12 %sum3 = add i32 %sum2, %y
20 %sum2 = add i32 %sum, %1
21 %sum3 = add i32 %sum2, %y
29 %sum2 = add i32 %sum, %1
30 %sum3 = add i32 %sum2, %y
38 %sum2 = add i32 %sum, %1
39 %sum3 = add i32 %sum2, %y
Dmerge-weak-crash.ll21 %sum2 = add i32 %sum, %y
22 %sum3 = call i32 @func4(i32 %sum, i32 %sum2)
28 %sum2 = add i32 %sum, %y
29 %sum3 = call i32 @unknown(i32 %sum, i32 %sum2)
35 %sum2 = add i32 %sum, %y
36 %sum3 = call i32 @func2(i32 %sum, i32 %sum2)
42 %sum2 = add i32 %sum, %y
43 %sum3 = call i32 @unknown(i32 %sum, i32 %sum2)
Dapply_function_attributes.ll13 %sum2 = add i32 %sum, %y
14 %sum3 = add i32 %sum2, %y
22 %sum2 = add i32 %sum, %y
23 %sum3 = add i32 %sum2, %y
31 %sum2 = add i32 %sum, %y
32 %sum3 = add i32 %sum2, %y
Dlinkonce_odr.ll20 %sum2 = add i32 %x, %sum
21 %sum3 = add i32 %x, %sum2
27 %sum2 = add i32 %x, %sum
28 %sum3 = add i32 %x, %sum2
Dfold-weak.ll5 %sum2 = add i32 %sum, %y
6 %sum3 = add i32 %sum2, %y
12 %sum2 = add i32 %sum, %y
13 %sum3 = add i32 %sum2, %y
/external/ltp/testcases/network/tcp_cmds/ftp/
Dftp01.sh35 local file sum1 sum2
47 sum2="$(ls -l $TST_NET_DATAROOT/$file | awk '{print $5}')"
49 EXPECT_PASS "[ '$sum1' = '$sum2' ]"
55 local file sum1 sum2
68 sum2="$(sum $TST_NET_DATAROOT/$file | awk '{print $1}')"
70 EXPECT_PASS "[ '$sum1' = '$sum2' ]"
/external/speex/libspeexdsp/
Dresample_sse.h105 __m128d sum2 = _mm_setzero_pd(); in interpolate_product_double() local
114 sum2 = _mm_add_pd(sum2, _mm_cvtps_pd(_mm_movehl_ps(t, t))); in interpolate_product_double()
118 sum2 = _mm_add_pd(sum2, _mm_cvtps_pd(_mm_movehl_ps(t, t))); in interpolate_product_double()
121 sum2 = _mm_mul_pd(f2, sum2); in interpolate_product_double()
122 sum = _mm_add_pd(sum1, sum2); in interpolate_product_double()
/external/XNNPACK/src/xnnpack/
Dintrinsics-polyfill.h75 const __m256 sum2 = _mm256_add_ps(_mm512_castps512_ps256(v), _mm512_extractf32x8_ps(v, 1)); in _mm512_reduce_add_ps() local
77 …const __m256 sum2 = _mm256_add_ps(_mm512_castps512_ps256(v), _mm256_castpd_ps(_mm512_extractf64x4_… in _mm512_reduce_add_ps()
79 const __m128 sum4 = _mm_add_ps(_mm256_castps256_ps128(sum2), _mm256_extractf128_ps(sum2, 1)); in _mm512_reduce_add_ps()
88 const __m256 sum2 = _mm256_max_ps(_mm512_castps512_ps256(v), _mm512_extractf32x8_ps(v, 1)); in _mm512_reduce_max_ps() local
90 …const __m256 sum2 = _mm256_max_ps(_mm512_castps512_ps256(v), _mm256_castpd_ps(_mm512_extractf64x4_… in _mm512_reduce_max_ps()
92 const __m128 sum4 = _mm_max_ps(_mm256_castps256_ps128(sum2), _mm256_extractf128_ps(sum2, 1)); in _mm512_reduce_max_ps()
/external/flac/src/libFLAC/deduplication/
Dlpc_compute_autocorrelation_intrin_sse2.c4 __m128d sum0, sum1, sum2, sum3; variable
21 sum2 = _mm_setzero_pd();
59 sum2 = _mm_add_pd(sum2, _mm_mul_pd(d, d2));
73 _mm_storeu_pd(autoc+4, sum2);
Dlpc_compute_autocorrelation_intrin_neon.c4 float64x2_t sum2 = vdupq_n_f64(0.0f); variable
48 sum2 = vfmaq_f64(sum2, d, d2);
62 vst1q_f64(autoc + 4, sum2);
/external/libvpx/vpx_dsp/x86/
Dconvolve_avx2.h61 __m256i sum1, sum2; in convolve8_16_avx2() local
67 sum2 = _mm256_add_epi16(x1, x3); in convolve8_16_avx2()
70 sum1 = _mm256_adds_epi16(sum1, sum2); in convolve8_16_avx2()
88 __m128i sum1, sum2; in convolve8_8_avx2() local
94 sum2 = _mm_add_epi16(x1, x3); in convolve8_8_avx2()
97 sum1 = _mm_adds_epi16(sum1, sum2); in convolve8_8_avx2()

12345