Lines Matching refs:s2

19  * The adler32 B value (aka s2) sums the A values from each step:
30 * compute the adler32 s1 s2 of M >> 32 input bytes [1].
32 * As M grows, the s1 s2 sums grow. If left unchecked, they would eventually
34 * and s2 also need to be computed modulo the adler BASE value (reduced). If
35 * at most NMAX bytes are processed before a reduce, s1 s2 _cannot_ overflow
38 * [1] the iterative equations for s2 contain constant factors; these can be
42 * of the adler s1 s2 of uint32_t type (see adler32.c).
65 uint32_t s2 = adler >> 16;
93 * processed before s2 must be reduced modulo BASE.
96 __m128i v_s2 = _mm_set_epi32(0, 0, 0, s2);
113 * bytes by [ 32, 31, 30, ... ] for s2.
130 * Sum epi32 ints v_s1(s2) and accumulate in s1(s2).
144 s2 = _mm_cvtsi128_si32(v_s2);
153 s2 %= BASE;
161 s2 += (s1 += *buf++);
162 s2 += (s1 += *buf++);
163 s2 += (s1 += *buf++);
164 s2 += (s1 += *buf++);
166 s2 += (s1 += *buf++);
167 s2 += (s1 += *buf++);
168 s2 += (s1 += *buf++);
169 s2 += (s1 += *buf++);
171 s2 += (s1 += *buf++);
172 s2 += (s1 += *buf++);
173 s2 += (s1 += *buf++);
174 s2 += (s1 += *buf++);
176 s2 += (s1 += *buf++);
177 s2 += (s1 += *buf++);
178 s2 += (s1 += *buf++);
179 s2 += (s1 += *buf++);
185 s2 += (s1 += *buf++);
190 s2 %= BASE;
196 return s1 | (s2 << 16);
212 uint32_t s2 = adler >> 16;
215 * Serially compute s1 & s2, until the data is 16-byte aligned.
219 s2 += (s1 += *buf++);
225 s2 %= BASE;
245 * processed before s2 must be reduced modulo BASE.
273 * Vertically add the bytes for s2.
287 * Multiply-add bytes by [ 32, 31, 30, ... ] for s2.
307 * Sum epi32 ints v_s1(s2) and accumulate in s1(s2).
314 s2 += vget_lane_u32(s1s2, 1);
320 s2 %= BASE;
328 s2 += (s1 += *buf++);
329 s2 += (s1 += *buf++);
330 s2 += (s1 += *buf++);
331 s2 += (s1 += *buf++);
333 s2 += (s1 += *buf++);
334 s2 += (s1 += *buf++);
335 s2 += (s1 += *buf++);
336 s2 += (s1 += *buf++);
338 s2 += (s1 += *buf++);
339 s2 += (s1 += *buf++);
340 s2 += (s1 += *buf++);
341 s2 += (s1 += *buf++);
343 s2 += (s1 += *buf++);
344 s2 += (s1 += *buf++);
345 s2 += (s1 += *buf++);
346 s2 += (s1 += *buf++);
352 s2 += (s1 += *buf++);
357 s2 %= BASE;
363 return s1 | (s2 << 16);