commit | c829ee48c772856ec450c81f96193a92f53ac5bc | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Jan 20 19:17:09 2015 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Tue Jan 20 19:48:05 2015 +0100 |
tree | f96f69b600b3bfbc79903be80a38cbc4b9c78099 | |
parent | 49ad95cc8eac46e463dc38137d7188b3b6c8c5e4 [diff] |
MINOR: hash: add new function hash_crc32 This function will be used to perform CRC32 computations. This one wa loosely inspired from crc32b found here, and focuses on size and speed at the same time : http://www.hackersdelight.org/hdcodetxt/crc.c.txt Much faster table-based versions exist but are pointless for our usage here, this hash already sustains gigabit speed which is far faster than what we'd ever need. Better preserve the CPU's cache instead.