]> git.ipfire.org Git - thirdparty/zlib-ng.git/commit
Combine Huffman code and extra bits into single shift operation
authorDougall Johnson <dougallj@gmail.com>
Sun, 25 Jan 2026 18:34:14 +0000 (10:34 -0800)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Wed, 28 Jan 2026 14:15:03 +0000 (15:15 +0100)
commitdc030d289c550f2f32aac0cce2663cf677aa335c
treebc8cd2c355956c77080398121d89066e11c3dc1a
parent36df93cb3ce42f829c5076afcfaf382fbdff9c50
Combine Huffman code and extra bits into single shift operation

This changes the "code" structure so that "bits" contains the total
number of bits, and "op & 15" contains the non-extra bit count.

Based on https://github.com/dougallj/zlib-dougallj/commit/34b9fc457b5247d7d2d732e6f28c9a80ff16abd7

Co-authored-by: Nathan Moinvaziri <nathan@nathanm.com>
infback.c
inffast_tpl.h
inffixed_tbl.h
inflate.c
inflate_p.h
inftrees.c
inftrees.h