Lines Matching refs:acc
78 * internet checksum. "acc" is a 32-bit
84 #define ADJUST_CHECKSUM(acc, cksum) { \
85 acc += cksum; \
86 if (acc < 0) { \
87 acc = -acc; \
88 acc = (acc >> 16) + (acc & 0xffff); \
89 acc += acc >> 16; \
90 cksum = (u_short) ~acc; \
92 acc = (acc >> 16) + (acc & 0xffff); \
93 acc += acc >> 16; \
94 cksum = (u_short) acc; \