Commit Graph

13 Commits

Author SHA1 Message Date
Nathan Moinvaziri
899f0720ec Renamed trees_p.h to trees.h. 2020-08-27 19:19:30 +02:00
Nathan Moinvaziri
4490d52d0a Rename table headers with tbl suffix. 2020-08-27 19:19:30 +02:00
Nathan Moinvaziri
951764a168 Unify emitting of literals and match dist/lengths. Removed deflate quick static tables, allowing for 32k window. 2020-05-06 09:39:52 +02:00
Nathan Moinvaziri
e0a711cdde Fixed formatting, 4 spaces for code intent, 2 spaces for preprocessor indent, initial function brace on the same line as definition, removed extraneous spaces and new lines. 2020-02-07 10:44:20 +01:00
Hans Kristian Rosbach
8dd3bb2317 Add maketrees test and clean up maketrees.c code 2019-09-20 22:29:21 +02:00
Nathan Moinvaziri
f06c71f981 Add zng_ prefix to internal functions to avoid linking conflicts with zlib. (#363) 2019-07-18 13:21:13 +02:00
Mika Lindqvist
631817cce8 local -> static
* local -> static
* Normalize and cleanup line-endings
* Fix warnings under Visual Studio.
* Whitespace cleanup

***
This patch has been edited to merge cleanly and to exclude type changes.
Based on 8d7a7c3b82c6e38734bd504dac800b148ab410d0 "Type Cleanup"
2017-01-30 10:35:05 +01:00
Hans Kristian Rosbach
0a2fdcd627 Style cleanup for trees.* 2015-05-25 23:05:13 +02:00
Mika Lindqvist
09403c93fd Cleanup user-defined types for 'unsigned char'
* Change 'uch' to 'unsigned char'
* Change 'Byte' to 'unsigned char'
2015-05-23 01:22:20 +03:00
Jim Kukunas
d948170e11 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
2014-07-26 15:53:17 -07:00
Mark Adler
7301420248 zlib 1.2.4.5 2011-09-09 23:34:55 -07:00
Mark Adler
965fe72aed zlib 1.1.0 2011-09-09 23:19:55 -07:00
Mark Adler
6759211ad8 zlib 1.0.8 2011-09-09 23:18:57 -07:00