Lines Matching defs:sum
99 q_util.q = sum; \
100 sum = q_util.s[0] + q_util.s[1] + q_util.s[2] + q_util.s[3]; \
104 q_util.q = sum; \
106 sum = l_util.s[0] + l_util.s[1]; \
107 ADDCARRY(sum); \
110 #define REDUCE {l_util.l = sum; sum = l_util.s[0] + l_util.s[1]; ADDCARRY(sum);}
128 u_int32_t sum = a + b;
131 return (sum);
137 u_int64_t sum;
141 sum = (u_int64_t) a + b + c;
143 return (sum);
152 u_int32_t sum = 0;
172 sum = in_pseudo(iph->ip_src.s_addr, iph->ip_dst.s_addr,
197 sum = xsum_assym(w, mlen, sum, starting_on_odd);
210 return (~sum & 0xffff);
219 u_int32_t sum = a + b;
221 REDUCE(sum);
222 return (sum);
228 u_int64_t sum;
232 sum = (u_int64_t) a + b + c;
234 return (sum);
242 u_int32_t sum = 0;
264 sum = in_pseudo(iph->ip_src.s_addr, iph->ip_dst.s_addr,
294 sum += s_util.s;
311 sum <<= 8;
322 sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3];
323 sum += w[4]; sum += w[5]; sum += w[6]; sum += w[7];
324 sum += w[8]; sum += w[9]; sum += w[10]; sum += w[11];
325 sum += w[12]; sum += w[13]; sum += w[14]; sum += w[15];
330 sum += w[0]; sum += w[1]; sum += w[2]; sum += w[3];
338 sum += *w++;
342 sum <<= 8;
346 sum += s_util.s;
360 sum += s_util.s;
364 return (~sum & 0xffff);