summaryrefslogtreecommitdiff
path: root/deflate_medium.c
AgeCommit message (Expand)Author
2021-03-20Restore hash_head != 0 checksIlya Leoshkevich
2020-11-02Fixed casting warnings when comparing MAX_DIST.Nathan Moinvaziri
2020-11-02Fixed match_start uint32_t to uint16_t casting warnings in deflate_medium.cNathan Moinvaziri
2020-10-18Fixed unsigned integer overflow ASAN error when hash_head > s->strstart.Nathan Moinvaziri
2020-08-31Fix numerous sign-conversion warnings in compare256/compare258 andHans Kristian Rosbach
2020-08-31Rename ZLIB_INTERNAL to Z_INTERNAL for consistency.Nathan Moinvaziri
2020-07-03Add likely/unlikely hinting to all deflate algorithms.Hans Kristian Rosbach
2020-06-27Do not set s->prev_length in deflate_medium, it is previously set in lm_init ...Nathan Moinvaziri
2020-06-27Only set current_match to literal if hash_head == 0.Nathan Moinvaziri
2020-05-30Remove toofar checks now that we always hash 4 bytes, and the minimumHans Kristian Rosbach
2020-05-30Remove IPos typedef which also helps to reduce casting warnings.Nathan Moinvaziri
2020-05-24Simplify generic hash function using knuth's multiplicative hash.Nathan Moinvaziri
2020-05-24Converted compare258 to static and convert longest_match to template.Nathan Moinvaziri
2020-05-06Change two NOT_TWEAK_COMPILER to check for MIN-MATCH!=3 instead.Hans Kristian Rosbach
2020-05-06Remove several NOT_TWEAK_COMPILER checks and their legacy code.Hans Kristian Rosbach
2020-05-01Standardize fill_window implementations and abstract out slide_hash_neon for ...Nathan Moinvaziri
2020-04-30Replaced insert_string with quick_insert_string if length is 1.Nathan Moinvaziri
2020-04-16Fixed signed/unsigned mismatch in deflate_medium in MSVC.Nathan Moinvaziri
2020-03-18Add comment regarding long match distance bit costs.Hans Kristian Rosbach
2020-03-18Reduce size of 'match' struct to 8 bytes, this allows us to fit twoHans Kristian Rosbach
2020-03-18Clean up usage of bflush make more similar for each deflate strategy.Hans Kristian Rosbach
2020-03-13Clean up zng_tr_tally code.Nathan Moinvaziri
2020-02-07Removed MAX_DIST2 which is incompatible with zlib when compiled with INFLATE_...Nathan Moinvaziri
2020-02-07Fixed formatting, 4 spaces for code intent, 2 spaces for preprocessor indent,...Nathan Moinvaziri
2019-10-22Clean up LIKELY/UNLIKELY definitions, making them upper-case to improve visib...Hans Kristian Rosbach
2019-07-18Add zng_ prefix to internal functions to avoid linking conflicts with zlib. (...Nathan Moinvaziri
2019-07-18deflate_medium: fix handling of overlapping matchesIlya Leoshkevich
2019-01-21Let deflate_medium be enabled by default.Hans Kristian Rosbach
2019-01-16move match.c to match_p.h and remove match.hSebastian Pop
2018-11-14Fix a bug that can crash deflate on some input when using Z_FIXED.Mark Adler
2018-09-17fix bug #192, oss-fuzz/9827 : MemorySanitizer:DEADLYSIGNALSebastian Pop
2018-03-22Move private defines from zconf.h and zconf-ng.h to zbuild.hMika Lindqvist
2017-08-17Make sure we don't export internal functionsHans Kristian Rosbach
2017-04-24Add a struct func_table and function functableInit.Hans Kristian Rosbach
2017-03-24deflate_medium: Make sure we have enough lookahead before trying to scan for ...Mika Lindqvist
2017-03-24deflate_medium: Remove broken overlap test.Mika Lindqvist
2017-03-24Fix typos.Mika Lindqvist
2017-02-16Avoid hashing same memory location twice by truncating overlapping byte ranges,Mika Lindqvist
2017-01-30Fix missing insert_string change from merge conflictHans Kristian Rosbach
2017-01-30Merge insert_string and bulk_insert_str.Mika Lindqvist
2017-01-30Use bulk_insert_str when adding more than one byte.Mika Lindqvist
2015-12-14Type cleanup.Mika Lindqvist
2015-11-03Fix for intels zlib fork, fixes their issues #2 and #3Jim Kukunas
2015-06-26Whitespace cleanupHans Kristian Rosbach
2015-06-26Make bulk_insert implementation of insert_match behave more likeHans Kristian Rosbach
2015-06-25No need to update hash_head.Hans Kristian Rosbach
2015-06-24Use bulk_insert_str() in deflate_medium.c too.Mika Lindqvist
2015-06-24Split deflate.cMika Lindqvist
2015-05-25Style cleanup for deflate codeHans Kristian Rosbach
2015-05-23Remove unused hash_head input parameter from function emit_matchHans Kristian Rosbach