.. | .. |
---|
11 | 11 | subject to change. Applications should only use zlib.h. |
---|
12 | 12 | */ |
---|
13 | 13 | |
---|
| 14 | +#include "inftrees.h" |
---|
| 15 | + |
---|
14 | 16 | /* Possible inflate modes between inflate() calls */ |
---|
15 | 17 | typedef enum { |
---|
16 | 18 | HEAD, /* i: waiting for magic header */ |
---|
.. | .. |
---|
108 | 110 | unsigned short work[288]; /* work area for code table building */ |
---|
109 | 111 | code codes[ENOUGH]; /* space for code tables */ |
---|
110 | 112 | }; |
---|
| 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 | + |
---|
111 | 119 | #endif |
---|