Commit Graph

63 Commits

Author SHA1 Message Date
Mika Lindqvist
e80a18b6e9 Use bulk_insert_str when adding more than one byte.
** Partial merge of this commit, based on f8ad48ab17571c730b743c925f0e13ff83cf487f
Excluding changes to fill_window_sse.c, deflate.c and deflate_p.h
2017-01-30 11:50:58 +01:00
Mika Lindqvist
9c3a280877 Type cleanup. 2015-12-14 11:00:22 +02:00
Jim Kukunas
6901ac1f8f Fix for intels zlib fork, fixes their issues #2 and #3 2015-11-03 20:46:36 +01:00
Hans Kristian Rosbach
04a039de2b Whitespace cleanup 2015-06-26 15:43:09 +02:00
Hans Kristian Rosbach
6d91b4ae5a Make bulk_insert implementation of insert_match behave more like
the original code, this also lets us optimize the match_length=1 case.
2015-06-26 15:22:36 +02:00
Hans Kristian Rosbach
785a1ec85f No need to update hash_head.
Plus a single style change to match the other deflate algorithms.
2015-06-25 22:34:06 +02:00
Mika Lindqvist
84eecff6bc Use bulk_insert_str() in deflate_medium.c too. 2015-06-24 20:37:48 +02:00
Mika Lindqvist
fc1d0be4bb Split deflate.c
* Separate common inlines and macros to deflate_p.h
* Separate deflate_fast related code to deflate_fast.c
* Separate deflate_medium related code to deflate_medium.c
* Separate deflate_slow related code to deflate_slow.c
2015-06-24 20:34:55 +02:00
Hans Kristian Rosbach
d3c96f12e3 Style cleanup for deflate code 2015-05-25 23:01:26 +02:00
Hans Kristian Rosbach
2b6fd3880e Remove unused hash_head input parameter from function emit_match 2015-05-23 21:04:39 +02:00
hansr
1eecc12f19 Clean up likely/unlikely definitions 2014-10-09 15:10:33 +02:00
Nathan Kidd
86694e8231 deflate: avoid use of uninitialized variable
(Note emit_match() doesn't currently use the value at all.)

Fixes #4
2014-07-26 15:53:17 -07:00
Jim Kukunas
0a225b19f8 deflate: add new deflate_medium strategy
From: Arjan van de Ven <arjan@linux.intel.com>

As the name suggests, the deflate_medium deflate strategy is designed
to provide an intermediate strategy between deflate_fast and deflate_slow.
After finding two adjacent matches, deflate_medium scans left from
the second match in order to determine whether a better match can be
formed.

Fixes #2
2014-07-26 15:53:17 -07:00