… | |
… | |
47 | * Size of hashtable is (1 << HLOG) * sizeof (char *) |
47 | * Size of hashtable is (1 << HLOG) * sizeof (char *) |
48 | * decompression is independent of the hash table size |
48 | * decompression is independent of the hash table size |
49 | * the difference between 15 and 14 is very small |
49 | * the difference between 15 and 14 is very small |
50 | * for small blocks (and 14 is usually a bit faster). |
50 | * for small blocks (and 14 is usually a bit faster). |
51 | * For a low-memory/faster configuration, use HLOG == 13; |
51 | * For a low-memory/faster configuration, use HLOG == 13; |
52 | * For best compression, use 15 or 16 (or more, up to 23). |
52 | * For best compression, use 15 or 16 (or more, up to 22). |
53 | */ |
53 | */ |
54 | #ifndef HLOG |
54 | #ifndef HLOG |
55 | # define HLOG 16 |
55 | # define HLOG 16 |
56 | #endif |
56 | #endif |
57 | |
57 | |
… | |
… | |
139 | # include <string.h> |
139 | # include <string.h> |
140 | # include <limits.h> |
140 | # include <limits.h> |
141 | #endif |
141 | #endif |
142 | |
142 | |
143 | #ifndef LZF_USE_OFFSETS |
143 | #ifndef LZF_USE_OFFSETS |
144 | # if defined (WIN32) |
144 | # if defined (WIN32) || defined (_WIN32) |
145 | # define LZF_USE_OFFSETS defined(_M_X64) |
145 | # define LZF_USE_OFFSETS defined(_M_X64) |
146 | # else |
146 | # else |
147 | # if __cplusplus > 199711L |
147 | # if __cplusplus > 199711L |
148 | # include <cstdint> |
148 | # include <cstdint> |
149 | # else |
149 | # else |