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

Comparing liblzf/lzfP.h (file contents):
Revision 1.30 by root, Mon Feb 23 23:46:10 2015 UTC vs.
Revision 1.31 by root, Mon Jun 29 23:34:41 2015 UTC

167# include <climits> 167# include <climits>
168using namespace std; 168using namespace std;
169#else 169#else
170# include <string.h> 170# include <string.h>
171# include <limits.h> 171# include <limits.h>
172#endif
173
174#if ULTRA_FAST
175# undef VERY_FAST
172#endif 176#endif
173 177
174#ifndef LZF_USE_OFFSETS 178#ifndef LZF_USE_OFFSETS
175# ifdef _WIN32 179# ifdef _WIN32
176# define LZF_USE_OFFSETS defined(_M_X64) 180# define LZF_USE_OFFSETS defined(_M_X64)
196# define LZF_HSLOT_BIAS 0 200# define LZF_HSLOT_BIAS 0
197 typedef const u8 *LZF_HSLOT; 201 typedef const u8 *LZF_HSLOT;
198# endif 202# endif
199#endif 203#endif
200 204
201typedef LZF_HSLOT LZF_STATE[1 << (HLOG)];
202
203#if USHRT_MAX == 65535 205#if USHRT_MAX == 65535
204 typedef unsigned short u16; 206 typedef unsigned short u16;
205#elif UINT_MAX == 65535 207#elif UINT_MAX == 65535
206 typedef unsigned int u16; 208 typedef unsigned int u16;
207#else 209#else
208# undef STRICT_ALIGN 210# undef STRICT_ALIGN
209# define STRICT_ALIGN 1 211# define STRICT_ALIGN 1
210#endif 212#endif
211 213
212#if ULTRA_FAST 214#define LZF_MAX_LIT (1 << 5)
213# undef VERY_FAST 215#define LZF_MAX_OFF (1 << 13)
214#endif 216#define LZF_MAX_REF ((1 << 8) + (1 << 3))
215 217
216#endif 218typedef LZF_HSLOT LZF_STATE[1 << (HLOG)];
217 219
220typedef struct
221{
222 const u8 *first [1 << (6+8)]; /* most recent occurance of a match */
223 u16 prev [LZF_MAX_OFF]; /* how many bytes to go backwards for the next match */
224} LZF_STATE_BEST[1];
225
226#endif
227

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines