summaryrefslogtreecommitdiff
path: root/inffast.c
diff options
context:
space:
mode:
authorHans Kristian Rosbach <hk-git@circlestorm.org>2019-07-18 15:49:54 +0200
committerHans Kristian Rosbach <hk-github@circlestorm.org>2019-08-06 09:39:26 +0200
commitd8eedcfa3e391cca6d247ebde2f5c64bd64582d6 (patch)
treeb121c60680118650e865ba963291614e81c5fd41 /inffast.c
parentf06c71f9817700eccb507f54249a8c52335bf693 (diff)
Deduplicate common inflate/inflatefast/inflateBack macros into inflate_p.h
Diffstat (limited to 'inffast.c')
-rw-r--r--inffast.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/inffast.c b/inffast.c
index 23edb08..62cb951 100644
--- a/inffast.c
+++ b/inffast.c
@@ -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