summaryrefslogtreecommitdiffstats
path: root/lz4.c
diff options
context:
space:
mode:
authoryann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd>2014-03-12 14:51:59 (GMT)
committeryann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd>2014-03-12 14:51:59 (GMT)
commita9d8640c1f3898cd47eb1faf22db013e8b9911db (patch)
treebf8993759a1f9685751dec833f206aee2e811348 /lz4.c
parent69dc85b8abe78246bea91a5ba1205e4c07b96a97 (diff)
downloadlz4-a9d8640c1f3898cd47eb1faf22db013e8b9911db.zip
lz4-a9d8640c1f3898cd47eb1faf22db013e8b9911db.tar.gz
lz4-a9d8640c1f3898cd47eb1faf22db013e8b9911db.tar.bz2
Makefile : library correctly compiled with -O3 switch (issue 114)
Makefile : library compilation compatible with clang Makefile : library is versioned and linked (issue 119) lz4.h : no more static inline prototypes (issue 116) man : improved header/footer (issue 111) Makefile : Use system default $(CC) & $(MAKE) variables (issue 112) xxhash : updated to r34 git-svn-id: https://lz4.googlecode.com/svn/trunk@114 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
Diffstat (limited to 'lz4.c')
-rw-r--r--lz4.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/lz4.c b/lz4.c
index ee37895..fd229ef 100644
--- a/lz4.c
+++ b/lz4.c
@@ -369,6 +369,8 @@ FORCE_INLINE int LZ4_NbCommonBytes (register U32 val)
/****************************
Compression functions
****************************/
+int LZ4_compressBound(int isize) { return LZ4_COMPRESSBOUND(isize); }
+
FORCE_INLINE int LZ4_hashSequence(U32 sequence, tableType_t tableType)
{
if (tableType == byU16)
@@ -709,7 +711,6 @@ int LZ4_compress_limitedOutput_continue (void* LZ4_Data, const char* source, cha
/****************************
Decompression functions
****************************/
-
/*
* This generic decompression function cover all use cases.
* It shall be instanciated several times, using different sets of directives
@@ -875,3 +876,5 @@ int LZ4_decompress_fast(const char* source, char* dest, int outputSize)
#endif
}
+int LZ4_uncompress (const char* source, char* dest, int outputSize) { return LZ4_decompress_fast(source, dest, outputSize); }
+int LZ4_uncompress_unknownOutputSize (const char* source, char* dest, int isize, int maxOutputSize) { return LZ4_decompress_safe(source, dest, isize, maxOutputSize); }