Home | History | Annotate | Download | only in lib

Lines Matching defs:sum

88  *		sum += byte;
89 * if (sum > 255)
90 * sum -= 255;
95 * checksum as "cksum = sum - ((sum - 1) / 255) * 255)". That
113 u_int sum;
116 sum = 0;
121 * Sum the contents of the block, keeping track of whether
126 sum += bootblock[i];
142 return (sum - ((sum - 1) / 255) * 255);