summaryrefslogtreecommitdiff
path: root/trees.h
diff options
context:
space:
mode:
authorJim Kukunas <james.t.kukunas@linux.intel.com>2013-07-18 13:19:05 -0700
committerJim Kukunas <james.t.kukunas@linux.intel.com>2014-07-26 15:53:17 -0700
commitd948170e11e4eaa68cce189e5ea10a4d41e01437 (patch)
tree61d57f3abbc292e2a063b49e46ee19d9d82a8c2b /trees.h
parent3684659f485b63f7482a8dc600f51112c556ce9d (diff)
deflate: add new deflate_quick strategy for level 1
The deflate_quick strategy is designed to provide maximum deflate performance. deflate_quick achieves this through: - only checking the first hash match - using a small inline SSE4.2-optimized longest_match - forcing a window size of 8K, and using a precomputed dist/len table - forcing the static Huffman tree and emitting codes immediately instead of tallying This patch changes the scope of flush_pending, bi_windup, and static_ltree to ZLIB_INTERNAL and moves END_BLOCK, send_code, put_short, and send_bits to deflate.h. Updates the configure script to enable by default for x86. On systems without SSE4.2, fallback is to deflate_fast strategy. Fixes #6 Fixes #8
Diffstat (limited to 'trees.h')
-rw-r--r--trees.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/trees.h b/trees.h
index d35639d..9a4ce94 100644
--- a/trees.h
+++ b/trees.h
@@ -1,6 +1,6 @@
/* header created automatically with -DGEN_TREES_H */
-local const ct_data static_ltree[L_CODES+2] = {
+ZLIB_INTERNAL const ct_data static_ltree[L_CODES+2] = {
{{ 12},{ 8}}, {{140},{ 8}}, {{ 76},{ 8}}, {{204},{ 8}}, {{ 44},{ 8}},
{{172},{ 8}}, {{108},{ 8}}, {{236},{ 8}}, {{ 28},{ 8}}, {{156},{ 8}},
{{ 92},{ 8}}, {{220},{ 8}}, {{ 60},{ 8}}, {{188},{ 8}}, {{124},{ 8}},