ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/liblzf/lzfP.h
(Generate patch)

Comparing liblzf/lzfP.h (file contents):
Revision 1.16 by root, Fri Nov 2 12:39:20 2007 UTC vs.
Revision 1.19 by root, Tue Nov 13 11:30:37 2007 UTC

21 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTH- 21 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTH-
22 * ERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 22 * ERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
23 * OF THE POSSIBILITY OF SUCH DAMAGE. 23 * OF THE POSSIBILITY OF SUCH DAMAGE.
24 * 24 *
25 * Alternatively, the contents of this file may be used under the terms of 25 * Alternatively, the contents of this file may be used under the terms of
26 * the GNU General Public License version 2 (the "GPL"), in which case the 26 * the GNU General Public License ("GPL") version 2 or any later version,
27 * provisions of the GPL are applicable instead of the above. If you wish to 27 * in which case the provisions of the GPL are applicable instead of
28 * allow the use of your version of this file only under the terms of the 28 * the above. If you wish to allow the use of your version of this file
29 * GPL and not to allow others to use your version of this file under the 29 * only under the terms of the GPL and not to allow others to use your
30 * BSD license, indicate your decision by deleting the provisions above and 30 * version of this file under the BSD license, indicate your decision
31 * replace them with the notice and other provisions required by the GPL. If 31 * by deleting the provisions above and replace them with the notice
32 * you do not delete the provisions above, a recipient may use your version 32 * and other provisions required by the GPL. If you do not delete the
33 * provisions above, a recipient may use your version of this file under
33 * of this file under either the BSD or the GPL. 34 * either the BSD or the GPL.
34 */ 35 */
35 36
36#ifndef LZFP_h 37#ifndef LZFP_h
37#define LZFP_h 38#define LZFP_h
38 39
46 * Size of hashtable is (1 << HLOG) * sizeof (char *) 47 * Size of hashtable is (1 << HLOG) * sizeof (char *)
47 * decompression is independent of the hash table size 48 * decompression is independent of the hash table size
48 * the difference between 15 and 14 is very small 49 * the difference between 15 and 14 is very small
49 * for small blocks (and 14 is usually a bit faster). 50 * for small blocks (and 14 is usually a bit faster).
50 * For a low-memory/faster configuration, use HLOG == 13; 51 * For a low-memory/faster configuration, use HLOG == 13;
51 * For best compression, use 15 or 16 (or more). 52 * For best compression, use 15 or 16 (or more, up to 23).
52 */ 53 */
53#ifndef HLOG 54#ifndef HLOG
54# define HLOG 15 55# define HLOG 16
55#endif 56#endif
56 57
57/* 58/*
58 * Sacrifice very little compression quality in favour of compression speed. 59 * Sacrifice very little compression quality in favour of compression speed.
59 * This gives almost the same compression as the default code, and is 60 * This gives almost the same compression as the default code, and is
60 * (very roughly) 15% faster. This is the preferable mode of operation. 61 * (very roughly) 15% faster. This is the preferred mode of operation.
61 */ 62 */
62
63#ifndef VERY_FAST 63#ifndef VERY_FAST
64# define VERY_FAST 1 64# define VERY_FAST 1
65#endif 65#endif
66 66
67/* 67/*

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines