summaryrefslogtreecommitdiff
path: root/lzo/src/lzo1b_9x.c
diff options
context:
space:
mode:
Diffstat (limited to 'lzo/src/lzo1b_9x.c')
-rw-r--r--lzo/src/lzo1b_9x.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/lzo/src/lzo1b_9x.c b/lzo/src/lzo1b_9x.c
index b80eca53..e00186d5 100644
--- a/lzo/src/lzo1b_9x.c
+++ b/lzo/src/lzo1b_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 0xffffL /* size of ring buffer */
-#define THRESHOLD 2 /* lower limit for match length */
-#define F 2048 /* upper limit for match length */
+#define SWD_N 0xffffL /* size of ring buffer */
+#define SWD_THRESHOLD 2 /* lower limit for match length */
+#define SWD_F 2048 /* upper limit for match length */
-#define LZO1B
+#define LZO1B 1
#define LZO_COMPRESS_T lzo1b_999_t
#define lzo_swd_t lzo1b_999_swd_t
#include "lzo_mchw.ch"
@@ -240,7 +243,7 @@ lzo1b_999_compress_callback ( const lzo_bytep in , lzo_uint in_len,
assert(m_len > 0);
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 &&
@@ -275,7 +278,7 @@ lzo1b_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
{
@@ -310,7 +313,7 @@ lzo1b_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);