diff options
author | Hans Kristian Rosbach <hk-git@circlestorm.org> | 2019-07-18 15:49:54 +0200 |
---|---|---|
committer | Hans Kristian Rosbach <hk-github@circlestorm.org> | 2019-08-06 09:39:26 +0200 |
commit | d8eedcfa3e391cca6d247ebde2f5c64bd64582d6 (patch) | |
tree | b121c60680118650e865ba963291614e81c5fd41 /inffast.c | |
parent | f06c71f9817700eccb507f54249a8c52335bf693 (diff) |
Deduplicate common inflate/inflatefast/inflateBack macros into inflate_p.h
Diffstat (limited to 'inffast.c')
-rw-r--r-- | inffast.c | 12 |
1 files changed, 1 insertions, 11 deletions
@@ -8,19 +8,9 @@ #include "inftrees.h" #include "inflate.h" #include "inffast.h" +#include "inflate_p.h" #include "memcopy.h" -/* Return the low n bits of the bit accumulator (n < 16) */ -#define BITS(n) \ - (hold & ((UINT64_C(1) << (n)) - 1)) - -/* Remove n bits from the bit accumulator */ -#define DROPBITS(n) \ - do { \ - hold >>= (n); \ - bits -= (unsigned)(n); \ - } while (0) - /* Decode literal, length, and distance codes and write out the resulting literal and match bytes until either not enough input or output is |