]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
add SSE4.2 optimized hash function
authorJim Kukunas <james.t.kukunas@linux.intel.com>
Thu, 18 Jul 2013 18:40:09 +0000 (11:40 -0700)
committerJim Kukunas <james.t.kukunas@linux.intel.com>
Tue, 3 Jun 2014 22:37:51 +0000 (15:37 -0700)
commitd306c75d3bb36cba73aec9b3b3ca378e31d1799e
treed559a8e91f86ccf124cbd83bdcb9945fd4e605eb
parent5640481288aaf91efcc27622ae973d373bfc2cf3
add SSE4.2 optimized hash function

For systems supporting SSE4.2, use the crc32 instruction as a fast
hash function. Also, provide a better fallback hash.

For both new hash functions, we hash 4 bytes, instead of 3, for certain
levels. This shortens the hash chains, and also improves the quality
of each hash entry.
configure
deflate.c
deflate.h