summaryrefslogtreecommitdiffstats
path: root/lib/lz4.h
diff options
context:
space:
mode:
authorYann Collet <yann.collet.73@gmail.com>2015-04-01 13:48:24 (GMT)
committerYann Collet <yann.collet.73@gmail.com>2015-04-01 13:48:24 (GMT)
commit662506890285faa949fd627b8da8394813b37f0b (patch)
treeaf6fe9f9a302676f6352572eaf47a6f45c815683 /lib/lz4.h
parent886b19951c08d4155482ae7841cc6773f1f02f46 (diff)
downloadlz4-662506890285faa949fd627b8da8394813b37f0b.zip
lz4-662506890285faa949fd627b8da8394813b37f0b.tar.gz
lz4-662506890285faa949fd627b8da8394813b37f0b.tar.bz2
simplified LZ4_compress()
Diffstat (limited to 'lib/lz4.h')
-rw-r--r--lib/lz4.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/lz4.h b/lib/lz4.h
index eabc40f..7072c37 100644
--- a/lib/lz4.h
+++ b/lib/lz4.h
@@ -99,7 +99,7 @@ LZ4_decompress_safe() :
* Advanced Functions
**************************************/
#define LZ4_MAX_INPUT_SIZE 0x7E000000 /* 2 113 929 216 bytes */
-#define LZ4_COMPRESSBOUND(isize) ((unsigned int)(isize) > (unsigned int)LZ4_MAX_INPUT_SIZE ? 0 : (isize) + ((isize)/255) + 16)
+#define LZ4_COMPRESSBOUND(isize) ((unsigned)(isize) > (unsigned)LZ4_MAX_INPUT_SIZE ? 0 : (isize) + ((isize)/255) + 16)
/*
LZ4_compressBound() :
@@ -107,11 +107,11 @@ LZ4_compressBound() :
This function is primarily useful for memory allocation purposes (output buffer size).
Macro LZ4_COMPRESSBOUND() is also provided for compilation-time evaluation (stack memory allocation for example).
- isize : is the input size. Max supported value is LZ4_MAX_INPUT_SIZE
+ inputSize : max supported value is LZ4_MAX_INPUT_SIZE
return : maximum output size in a "worst case" scenario
or 0, if input size is too large ( > LZ4_MAX_INPUT_SIZE)
*/
-int LZ4_compressBound(int isize);
+int LZ4_compressBound(int inputSize);
/*