|
Linux Kernel
3.7.1
|
#include <linux/compiler.h>#include "gzip.h"Go to the source code of this file.
Data Structures | |
| struct | huft |
Macros | |
| #define | DEBG(x) |
| #define | DEBG1(x) |
| #define | STATIC |
| #define | INIT |
| #define | slide window |
| #define | wp outcnt |
| #define | flush_output(w) (wp=(w),flush_window()) |
| #define | NEXTBYTE() ({ int v = get_byte(); if (v < 0) goto underrun; (uch)v; }) |
| #define | NEEDBITS(n) {while(k<(n)){b|=((ulg)NEXTBYTE())<<k;k+=8;}} |
| #define | DUMPBITS(n) {b>>=(n);k-=(n);} |
| #define | BMAX 16 /* maximum bit length of any code (16 for explode) */ |
| #define | N_MAX 288 /* maximum number of codes in any set */ |
| #define | CRC_VALUE (crc ^ 0xffffffffUL) |
| #define | ASCII_FLAG 0x01 /* bit 0 set: file probably ASCII text */ |
| #define | CONTINUATION 0x02 /* bit 1 set: continuation of multi-part gzip file */ |
| #define | EXTRA_FIELD 0x04 /* bit 2 set: extra field present */ |
| #define | ORIG_NAME 0x08 /* bit 3 set: original file name present */ |
| #define | COMMENT 0x10 /* bit 4 set: file comment present */ |
| #define | ENCRYPTED 0x20 /* bit 5 set: file is encrypted */ |
| #define | RESERVED 0xC0 /* bit 6,7: reserved */ |
Functions | |
| STATIC int INIT huft_build | OF ((unsigned *, unsigned, unsigned, const ush *, const ush *, struct huft **, int *)) |
| STATIC int INIT huft_free | OF ((struct huft *)) |
| STATIC int INIT inflate_codes | OF ((struct huft *, struct huft *, int, int)) |
| STATIC int INIT inflate_stored | OF ((void)) |
| STATIC int INIT inflate_block | OF ((int *)) |
| STATIC int INIT | huft_build (unsigned *b, unsigned n, unsigned s, const ush *d, const ush *e, struct huft **t, int *m) |
| STATIC int INIT | huft_free (struct huft *t) |
| STATIC int INIT | inflate_codes (struct huft *tl, struct huft *td, int bl, int bd) |
| STATIC int INIT | inflate_stored (void) |
| STATIC int noinline INIT | inflate_fixed (void) |
| STATIC int noinline INIT | inflate_dynamic (void) |
| STATIC int INIT | inflate_block (int *e) |
| STATIC int INIT | inflate (void) |
Variables | |
| STATIC ulg | bb |
| STATIC unsigned | bk |
| STATIC const ush | mask_bits [] |
| STATIC const int | lbits = 9 |
| STATIC const int | dbits = 6 |
| STATIC unsigned | hufts |
| #define ASCII_FLAG 0x01 /* bit 0 set: file probably ASCII text */ |
| #define COMMENT 0x10 /* bit 4 set: file comment present */ |
| #define CONTINUATION 0x02 /* bit 1 set: continuation of multi-part gzip file */ |
| #define ENCRYPTED 0x20 /* bit 5 set: file is encrypted */ |
| #define EXTRA_FIELD 0x04 /* bit 2 set: extra field present */ |
| #define ORIG_NAME 0x08 /* bit 3 set: original file name present */ |
| STATIC int INIT huft_build OF | ( | (unsigned *, unsigned, unsigned, const ush *, const ush *, struct huft **, int *) | ) |
| STATIC int INIT inflate_block OF | ( | (int *) | ) |
1.8.2