| 95 | /* the arguments must not have side effects */ |
| 96 | |
| 97 | static unsigned reverse(unsigned int code, int len) |
| 98 | /* Reverse the first len bits of a code. */ |
| 99 | { |
| 100 | register unsigned res = 0; |
| 101 | do res = (res << 1) | (code & 1), code>>=1; while (--len); |
| 102 | return res; |
| 103 | } |
| 104 | |
| 105 | /* Allocate the match buffer and initialize the various tables. */ |
| 106 | CodeTree::CodeTree(int deflate_level, BufferedTransformation &outQ) |