diff options
author | yann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd> | 2013-08-16 10:46:08 (GMT) |
---|---|---|
committer | yann.collet.73@gmail.com <yann.collet.73@gmail.com@650e7d94-2a16-8b24-b05c-7c0b3f6821cd> | 2013-08-16 10:46:08 (GMT) |
commit | 02c5579ff05561755db072faba6d508cb6ba87d9 (patch) | |
tree | 7ccf7e401c190ecdad72e4dc281665cfe6c1e0e3 /lz4hc.c | |
parent | 27efcd4d4582add02884698ddca3c2cb96a281c5 (diff) | |
download | lz4-02c5579ff05561755db072faba6d508cb6ba87d9.zip lz4-02c5579ff05561755db072faba6d508cb6ba87d9.tar.gz lz4-02c5579ff05561755db072faba6d508cb6ba87d9.tar.bz2 |
LZ4 compression supports block dependency (argument -BD within lz4c command line)
fullbench : added bench of LZ4_compress_continue(), LZ4_compress_limitedOutput_continue(), LZ4_compressHC_continue() and LZ4_compressHC_limitedOutput_continue()
git-svn-id: https://lz4.googlecode.com/svn/trunk@102 650e7d94-2a16-8b24-b05c-7c0b3f6821cd
Diffstat (limited to 'lz4hc.c')
-rw-r--r-- | lz4hc.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -332,7 +332,7 @@ FORCE_INLINE int LZ4_NbCommonBytes (register U32 val) #endif
-FORCE_INLINE int LZ4_InitHC (LZ4HC_Data_Structure* hc4, const BYTE* base)
+FORCE_INLINE void LZ4_initHC (LZ4HC_Data_Structure* hc4, const BYTE* base)
{
MEM_INIT((void*)hc4->hashTable, 0, sizeof(hc4->hashTable));
MEM_INIT(hc4->chainTable, 0xFF, sizeof(hc4->chainTable));
@@ -340,14 +340,13 @@ FORCE_INLINE int LZ4_InitHC (LZ4HC_Data_Structure* hc4, const BYTE* base) hc4->base = base;
hc4->inputBuffer = base;
hc4->end = base;
- return 1;
}
-void* LZ4_createHC (const char* slidingInputBuffer)
+void* LZ4_createHC (const char* inputBuffer)
{
void* hc4 = ALLOCATOR(sizeof(LZ4HC_Data_Structure));
- LZ4_InitHC ((LZ4HC_Data_Structure*)hc4, (const BYTE*)slidingInputBuffer);
+ LZ4_initHC ((LZ4HC_Data_Structure*)hc4, (const BYTE*)inputBuffer);
return hc4;
}
|