summaryrefslogtreecommitdiff
path: root/lzo/src/lzo1c_9x.c
diff options
context:
space:
mode:
authorArne Schwabe <arne@rfc2549.org>2012-07-02 17:28:05 +0200
committerArne Schwabe <arne@rfc2549.org>2012-07-02 17:28:05 +0200
commit6a4ba5d3976f6d219400a46c634dd479bc5981a5 (patch)
treeb9514fea0817906859843475fe8455070de25064 /lzo/src/lzo1c_9x.c
parent73d3b9c032eae2074726cd3668546af1c44a8323 (diff)
Update lzo version
Diffstat (limited to 'lzo/src/lzo1c_9x.c')
-rw-r--r--lzo/src/lzo1c_9x.c17
1 files changed, 10 insertions, 7 deletions
diff --git a/lzo/src/lzo1c_9x.c b/lzo/src/lzo1c_9x.c
index d96c3e9a..4b7091ff 100644
--- a/lzo/src/lzo1c_9x.c
+++ b/lzo/src/lzo1c_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 LZO1C
+#define LZO1C 1
#define LZO_COMPRESS_T lzo1c_999_t
#define lzo_swd_t lzo1c_999_swd_t
#include "lzo_mchw.ch"
@@ -246,7 +249,7 @@ lzo1c_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 &&
@@ -281,7 +284,7 @@ lzo1c_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
{
@@ -324,7 +327,7 @@ lzo1c_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);