Lines Matching refs:checksum
43 * This is the internet (IP, TCP) checksum algorithm, which is the 1s-complement sum
74 ; Partial word at start: zero filled on left, it becomes initial checksum.
88 ; r2 = initial checksum
134 ; r2 = checksum so far
176 ; r2 = checksum so far (word parallel)
185 srwi r6,r2,16 ; top half of 32-bit checksum
193 ; The checksum began on an odd address, so swap bytes.
199 ; Finally, add in checksum passed in as a parameter.
202 add r2,r2,r5 ; add passed-in checksum
203 srwi r6,r2,16 ; top half of 32-bit checksum
220 li r2,0 ; initialize checksum
241 ; r2 = checksum so far (ie, the zero-filled partial first word)
401 b Lwrapup ; merge r2, r5, and carry into a 16-bit checksum