Lines Matching defs:sum
567 int sum = 0;570 * Our algorithm is simple, using a 32 bit accumulator (sum),576 sum += *w++;582 sum += *(unsigned char *)w;587 sum = (sum >> 16) + (sum & 0xffff); /* add hi 16 to low 16 */588 sum += (sum >> 16); /* add carry */589 answer = ~sum; /* truncate to 16 bits */