]> git.ipfire.org Git - thirdparty/systemd.git/commit
libsystemd-network: Speed up checksum computation using 64 bit integers
authorTom Gundersen <teg@jklm.no>
Wed, 2 Apr 2014 08:00:31 +0000 (10:00 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 7 Apr 2014 12:39:21 +0000 (15:39 +0300)
commitd576127429a7be7d8e393d06f1bdd004fa37096c
treee59d35258f5fe2e18c918decbc2f9128c39069ea
parent298f77c60c954a4e31229592ec95ee8e06ff1baa
libsystemd-network: Speed up checksum computation using 64 bit integers

Improve the checksum computation by using 64 bit integers instead of the 16 bit
integers in the existing implementation. This change speeds up the computation
with approximately 78% both on 64 bit and 32 bit systems.

Please see RFC 1071 for details.
src/libsystemd-network/dhcp-internal.h
src/libsystemd-network/dhcp-packet.c