question about checksum.c
20 Feb
2001
20 Feb
'01
8:12 p.m.
Hi all In the func ipsum_calc_block(u16 *x, unsigned len, u16 sum) ASSERT(!(len % 2)); if (!len) return sum; len >>= 1; if ((unsigned long) x & 2) /* Align to 32-bit boundary, use x's address */ { sum = add16(sum, *x++); len--; } rest = len & 1; len >>= 1; tmp = 0; xx = (u32 *) x; Why do we have two len >>= 1; i understand it will change the xx to move 32 bits one time. Isnt that the first one redundant?
9244
Age (days ago)
9244
Last active (days ago)
0 comments
1 participants
participants (1)
-
Zheng Yuan {ZYUAN1}