hc
2023-12-11 d2ccde1c8e90d38cee87a1b0309ad2827f3fd30d
kernel/lib/zlib_inflate/inflate.h
....@@ -11,6 +11,8 @@
1111 subject to change. Applications should only use zlib.h.
1212 */
1313
14
+#include "inftrees.h"
15
+
1416 /* Possible inflate modes between inflate() calls */
1517 typedef enum {
1618 HEAD, /* i: waiting for magic header */
....@@ -108,4 +110,10 @@
108110 unsigned short work[288]; /* work area for code table building */
109111 code codes[ENOUGH]; /* space for code tables */
110112 };
113
+
114
+/* Reverse the bytes in a 32-bit value */
115
+#define REVERSE(q) \
116
+ ((((q) >> 24) & 0xff) + (((q) >> 8) & 0xff00) + \
117
+ (((q) & 0xff00) << 8) + (((q) & 0xff) << 24))
118
+
111119 #endif