diff options
Diffstat (limited to 'lzo/src/lzo1f_9x.c')
-rw-r--r-- | lzo/src/lzo1f_9x.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/lzo/src/lzo1f_9x.c b/lzo/src/lzo1f_9x.c index 4240a771..3846651a 100644 --- a/lzo/src/lzo1f_9x.c +++ b/lzo/src/lzo1f_9x.c @@ -2,6 +2,9 @@ This file is part of the LZO real-time data compression library. + Copyright (C) 2011 Markus Franz Xaver Johannes Oberhumer + Copyright (C) 2010 Markus Franz Xaver Johannes Oberhumer + Copyright (C) 2009 Markus Franz Xaver Johannes Oberhumer Copyright (C) 2008 Markus Franz Xaver Johannes Oberhumer Copyright (C) 2007 Markus Franz Xaver Johannes Oberhumer Copyright (C) 2006 Markus Franz Xaver Johannes Oberhumer @@ -45,12 +48,12 @@ // ************************************************************************/ -#define N 16383 /* size of ring buffer */ -#define THRESHOLD 2 /* lower limit for match length */ -#define F 2048 /* upper limit for match length */ +#define SWD_N 16383 /* size of ring buffer */ +#define SWD_THRESHOLD 2 /* lower limit for match length */ +#define SWD_F 2048 /* upper limit for match length */ -#define LZO1F +#define LZO1F 1 #define LZO_COMPRESS_T lzo1f_999_t #define lzo_swd_t lzo1f_999_swd_t #include "lzo_mchw.ch" @@ -221,7 +224,7 @@ lzo1f_999_compress_callback ( const lzo_bytep in , lzo_uint in_len, if (m_len > 0 && lazy_match_min_gain >= 0 && c->look > m_len) { r = find_match(c,swd,1,0); - assert(r == 0); + assert(r == 0); LZO_UNUSED(r); assert(c->look > 0); if (m_len <= M2_MAX_LEN && m_off <= M2_MAX_OFFSET && @@ -272,7 +275,7 @@ lzo1f_999_compress_callback ( const lzo_bytep in , lzo_uint in_len, /* a literal */ lit++; r = find_match(c,swd,1,0); - assert(r == 0); + assert(r == 0); LZO_UNUSED(r); } else { @@ -290,7 +293,7 @@ lzo1f_999_compress_callback ( const lzo_bytep in , lzo_uint in_len, /* 2 - code match */ op = code_match(c,op,m_len,m_off); r = find_match(c,swd,m_len,1+ahead); - assert(r == 0); + assert(r == 0); LZO_UNUSED(r); } c->codesize = pd(op, out); |