summaryrefslogtreecommitdiffstats
path: root/include/lzo.h
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2013-09-21 12:02:41 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2013-09-22 16:48:46 +0200
commite7aab5c84424bb6852a1645d7978479c84115fcd (patch)
tree7171c57c6a48955b130cb3dec634f96372c7afd4 /include/lzo.h
parente0be72d3cd3924c369e242637744d7864f79e660 (diff)
downloadbarebox-e7aab5c84424bb6852a1645d7978479c84115fcd.tar.gz
barebox-e7aab5c84424bb6852a1645d7978479c84115fcd.tar.xz
lzo: update to lzo-2013
take from linux next-20130227 same version as v3.11 before -rwxr-xr-x 1 root root 123001 Feb 28 01:04 build/highbank/arch/arm/pbl/zbarebox.bin after -rwxr-xr-x 1 root root 122226 Feb 28 01:02 build/highbank/arch/arm/pbl/zbarebox.bin smaller and faster Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/lzo.h')
-rw-r--r--include/lzo.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/lzo.h b/include/lzo.h
index ceacfba692..6c34be13ef 100644
--- a/include/lzo.h
+++ b/include/lzo.h
@@ -4,18 +4,18 @@
* LZO Public Kernel Interface
* A mini subset of the LZO real-time data compression library
*
- * Copyright (C) 1996-2005 Markus F.X.J. Oberhumer <markus@oberhumer.com>
+ * Copyright (C) 1996-2012 Markus F.X.J. Oberhumer <markus@oberhumer.com>
*
* The full LZO package can be found at:
* http://www.oberhumer.com/opensource/lzo/
*
- * Changed for kernel use by:
+ * Changed for Linux kernel use by:
* Nitin Gupta <nitingupta910@gmail.com>
* Richard Purdie <rpurdie@openedhand.com>
*/
-#define LZO1X_MEM_COMPRESS (16384 * sizeof(unsigned char *))
-#define LZO1X_1_MEM_COMPRESS LZO1X_MEM_COMPRESS
+#define LZO1X_1_MEM_COMPRESS (8192 * sizeof(unsigned short))
+#define LZO1X_MEM_COMPRESS LZO1X_1_MEM_COMPRESS
#define lzo1x_worst_compress(x) ((x) + ((x) / 16) + 64 + 3)
@@ -44,6 +44,7 @@ STATIC int lzo1x_decompress_safe(const unsigned char *src, size_t src_len,
#define LZO_E_EOF_NOT_FOUND (-7)
#define LZO_E_INPUT_NOT_CONSUMED (-8)
#define LZO_E_NOT_YET_IMPLEMENTED (-9)
+#define LZO_E_INVALID_ARGUMENT (-10)
STATIC int decompress_unlzo(u8 *input, int in_len,
int (*fill) (void *, unsigned int),