tcpan
f423d016cf
FIX: added prefix to FORCE_INLINE to prevent redefinition error during compilation when used with other libraries that define FORCE_INLINE
2017-08-24 10:14:20 -04:00
Yann Collet
6ad3a983db
fix #369
...
The bug would make the bt search read one byte in an invalid memory region,
and make a branch decision based on its value.
Impact was small (missed compression opportunity).
It only happens in -BD mode, with extDict-prefix overlapping matches.
The bt match search is supposed to work also in extDict mode.
In which case, the match ptr can point into Dict.
When the match was overlapping Dict<->Prefix,
match[matchLength] would end up outside of Dict, in an invalid memory area.
The correction ensures that in such a case,
match[matchLength] ends up at intended location, inside prefix.
2017-06-26 11:29:05 -07:00
Yann Collet
a8dd86d93e
changed macro HEAPMODE into LZ4_HEAPMODE
...
This macro is susceptible to be triggered from user side
typically through compiler flag (-DLZ4_HEAPMODE=1).
In which case, it makes sense to prefix the macro
since we want to reduce potential side-effect on namespace.
2017-05-01 22:32:21 -07:00
Yann Collet
68044acfec
Merge branch 'optlz4opt' of github.com:Cyan4973/lz4 into optlz4opt
2017-03-20 09:58:00 -07:00
Yann Collet
b8bc70022b
minor refactor
2017-03-20 05:04:12 -07:00
Yann Collet
cea8f60df1
slight btopt speed improvement
...
removing a useless test
2017-03-20 02:33:02 -07:00
Yann Collet
f513020a6d
slight btopt speed improvement
...
removing a useless test
2017-03-17 18:07:53 -07:00
Yann Collet
8bd32a17b1
made SET_PRICE macro more usable
...
previous version would use argument to also change target member.
Now, only values are transferred
2017-03-17 17:42:47 -07:00
Yann Collet
118b47f3d1
improved lz4opt speed (~4%)
2017-03-17 16:53:35 -07:00
Yann Collet
eff6166eb8
minor price function optimization
2017-03-17 15:51:21 -07:00
Yann Collet
cd35f0d98c
LZ4_compress_HC_destSize() uses LZ4HC_compress_generic() code path
...
Limits compression level to 10,
to remain compatible with Hash Chain.
2017-03-16 15:10:38 -07:00
Przemyslaw Skibinski
312d88249f
removed nextToUpdateBT
2016-12-28 15:38:59 +01:00
Przemyslaw Skibinski
3d5bb38977
clean logging
2016-12-28 15:37:12 +01:00
Przemyslaw Skibinski
1c80b9af4e
LZ4HC_getSearchNum
2016-12-28 15:18:19 +01:00
Przemyslaw Skibinski
98f9d6c726
improved logging
2016-12-28 14:04:38 +01:00
Przemyslaw Skibinski
20381a2fce
fixed -BD compression
2016-12-27 15:31:35 +01:00
Yann Collet
19c0f21b00
updated Makefile : lz4 no longer recompiled when already up-to-date
2016-12-22 18:02:09 +01:00
Przemyslaw Skibinski
4f050b68d8
tree update dependent from compression level
2016-12-09 18:17:46 +01:00
Przemyslaw Skibinski
838ed341f9
fullUpdate as a parameter
2016-12-09 17:16:35 +01:00
Przemyslaw Skibinski
b3ecc3e3ec
last match starts at least 12 bytes before end of block
2016-12-09 16:09:38 +01:00
Przemyslaw Skibinski
d694bf9111
faster opt compression
2016-12-09 15:20:32 +01:00
Przemyslaw Skibinski
a22e71d4a9
full binary tree update
2016-12-09 12:37:17 +01:00
Przemyslaw Skibinski
fb6c98c856
slightly improved lz4opt.h
2016-12-08 15:50:45 +01:00
Przemyslaw Skibinski
8bfa42e61e
improved ratio
2016-12-07 15:49:45 +01:00
Przemyslaw Skibinski
410ba53dbc
improved LZ4HC_BinTree_GetAllMatches
2016-12-07 13:07:39 +01:00
Przemyslaw Skibinski
1833be1cf0
fixed gcc warnings
2016-12-07 12:59:05 +01:00
Przemyslaw Skibinski
f2ebf37bfe
slightly improved ratio
2016-12-07 12:49:38 +01:00
Przemyslaw Skibinski
77b051ed7b
improve code formatting
2016-12-07 12:17:24 +01:00
Przemyslaw Skibinski
757ef1d5fc
removed LZ4HC_GetAllMatches
2016-12-07 11:44:17 +01:00
Przemyslaw Skibinski
cfe6a24b08
updated LZ4HC_get_price
2016-12-06 19:42:47 +01:00
Przemyslaw Skibinski
2113ead176
17-bit LZ4HC_MAXD
2016-12-06 19:11:53 +01:00
Przemyslaw Skibinski
3f430daf7a
added lz4opt.h
2016-12-06 15:20:59 +01:00