summaryrefslogtreecommitdiffstats
path: root/src/include
diff options
context:
space:
mode:
authorMichael Brown2012-06-26 18:19:18 +0200
committerMichael Brown2012-06-28 17:02:31 +0200
commitec22e08db1fa61f5276b2ed1efbde28a1a45101e (patch)
treef8e65353e71dee19449d2934fefd684ed101f386 /src/include
parent[test] Add self-tests for TCP/IP checksum calculation (diff)
downloadipxe-ec22e08db1fa61f5276b2ed1efbde28a1a45101e.tar.gz
ipxe-ec22e08db1fa61f5276b2ed1efbde28a1a45101e.tar.xz
ipxe-ec22e08db1fa61f5276b2ed1efbde28a1a45101e.zip
[tcpip] Add faster algorithm for calculating the TCP/IP checksum
The generic TCP/IP checksum implementation requires approximately 10 CPU clocks per byte (as measured using the TSC). Improve this to approximately 0.5 CPU clocks per byte by using "lodsl ; adcl" in an unrolled loop. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include')
0 files changed, 0 insertions, 0 deletions