inftrees.c (62ed948cb1405fe95d61d8c6445c102e0c9da0a6) | inftrees.c (0ecbf4b5fc38479ba29149455d56c11a23b131c0) |
---|---|
1/* inftrees.c -- generate Huffman trees for efficient decoding 2 * Copyright (C) 1995-2005 Mark Adler 3 * For conditions of distribution and use, see copyright notice in zlib.h 4 */ 5 6#include <linux/zutil.h> 7#include "inftrees.h" 8 9#define MAXBITS 15 10 | 1/* inftrees.c -- generate Huffman trees for efficient decoding 2 * Copyright (C) 1995-2005 Mark Adler 3 * For conditions of distribution and use, see copyright notice in zlib.h 4 */ 5 6#include <linux/zutil.h> 7#include "inftrees.h" 8 9#define MAXBITS 15 10 |
11const char inflate_copyright[] = 12 " inflate 1.2.3 Copyright 1995-2005 Mark Adler "; | |
13/* | 11/* |
14 If you use the zlib library in a product, an acknowledgment is welcome 15 in the documentation of your product. If for some reason you cannot 16 include such an acknowledgment, I would appreciate that you keep this 17 copyright string in the executable of your product. 18 */ 19 20/* | |
21 Build a set of tables to decode the provided canonical Huffman code. 22 The code lengths are lens[0..codes-1]. The result starts at *table, 23 whose indices are 0..2^bits-1. work is a writable array of at least 24 lens shorts, which is used as a work area. type is the type of code 25 to be generated, CODES, LENS, or DISTS. On return, zero is success, 26 -1 is an invalid code, and +1 means that ENOUGH isn't enough. table 27 on return points to the next available entry's address. bits is the 28 requested root table index bits, and on return it is the actual root --- 301 unchanged lines hidden --- | 12 Build a set of tables to decode the provided canonical Huffman code. 13 The code lengths are lens[0..codes-1]. The result starts at *table, 14 whose indices are 0..2^bits-1. work is a writable array of at least 15 lens shorts, which is used as a work area. type is the type of code 16 to be generated, CODES, LENS, or DISTS. On return, zero is success, 17 -1 is an invalid code, and +1 means that ENOUGH isn't enough. table 18 on return points to the next available entry's address. bits is the 19 requested root table index bits, and on return it is the actual root --- 301 unchanged lines hidden --- |