Skip to content
Commit be0e1e78 authored by Ian Abbott's avatar Ian Abbott Committed by David S. Miller
Browse files

lib/checksum.c: optimize do_csum a bit



Reduce the number of variables modified by the loop in do_csum() by 1,
which seems like a good idea.  On Nios II (a RISC CPU with 3-operand
instruction set) it reduces the loop from 7 to 6 instructions, including
the conditional branch.

Signed-off-by: default avatarIan Abbott <abbotti@mev.co.uk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 97bc3633
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment