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
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
0d073d4d28
added extern C
for lz4.h static section
...
should make the file more compatible with C++ compiler, such as Visual or g++
2017-03-17 15:11:09 -07:00
Yann Collet
aae447fffd
LZ4_compress_HC_continue_destSize() works as intended up to level 10
...
It's incompatible with btopt though,
so cLevel >= 11 feature much reduced performance (degraded mode)
2017-03-16 15:41:30 -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
Yann Collet
6b2a1b3606
updated lz4 version number
2017-03-16 02:24:46 -07:00
Yann Collet
430b7d32b3
created LZ4_HC_STATIC_LINKING_ONLY section
...
where are exposed new prototypes *_destSize()
2017-03-16 02:16:24 -07:00
Yann Collet
9144520dc9
fixed Visual compilation error
...
static const must be a "constant", like a macro
even if it can be determined at compile time ...
2017-03-15 18:59:26 -07:00
Yann Collet
a33bf89c62
fix #332 : do not modify /dev/null permissions
2017-03-15 17:26:50 -07:00
Yann Collet
e945a27f9c
fix #333 : expose obsolete decoding functions
...
with deprecation warning.
notified by Chen Yufei
2017-03-14 21:21:54 -07:00
Yann Collet
e1b2b370e1
added Oleg @remittor contribution
2017-03-12 03:18:34 -07:00
Yann Collet
b9132bedcd
Merge pull request #331 from ldv-alt/dev
...
Export only those symbols that are part of public API
2017-03-12 03:16:23 -07:00
Yann Collet
50fe87f13a
Merge pull request #329 from remittor/dev-hc2
...
lz4hc: Add LZ4_compressHC_destSize
2017-03-12 03:15:10 -07:00
Dmitry V. Levin
883ebdcee0
Export only those symbols that are part of public API
...
Specify -fvisibility=hidden parameter when linking the shared library
using -fPIC, assuming that gcc >= 4 is used.
This change results to unexporting of the following 42 functions:
LZ4F_getErrorCode
LZ4_XXH32
LZ4_XXH32_canonicalFromHash
LZ4_XXH32_copyState
LZ4_XXH32_createState
LZ4_XXH32_digest
LZ4_XXH32_freeState
LZ4_XXH32_hashFromCanonical
LZ4_XXH32_reset
LZ4_XXH32_update
LZ4_XXH64
LZ4_XXH64_canonicalFromHash
LZ4_XXH64_copyState
LZ4_XXH64_createState
LZ4_XXH64_digest
LZ4_XXH64_freeState
LZ4_XXH64_hashFromCanonical
LZ4_XXH64_reset
LZ4_XXH64_update
LZ4_XXH_versionNumber
LZ4_compressHC
LZ4_compressHC2
LZ4_compressHC2_continue
LZ4_compressHC2_limitedOutput
LZ4_compressHC2_limitedOutput_continue
LZ4_compressHC2_limitedOutput_withStateHC
LZ4_compressHC2_withStateHC
LZ4_compressHC_continue
LZ4_compressHC_limitedOutput
LZ4_compressHC_limitedOutput_continue
LZ4_compressHC_limitedOutput_withStateHC
LZ4_compressHC_withStateHC
LZ4_compress_fast_force
LZ4_compress_forceExtDict
LZ4_createHC
LZ4_decompress_safe_forceExtDict
LZ4_freeHC
LZ4_resetStreamStateHC
LZ4_sizeofStreamStateHC
LZ4_slideInputBufferHC
LZ4_uncompress
LZ4_uncompress_unknownOutputSize
2017-03-10 23:35:30 +00:00
Dmitry V. Levin
25b2435885
Export deprecated symbols
...
Deprecated symbols are still a part of ABI and have to be exported,
so mark them with LZ4LIB_API attribute.
2017-03-10 23:35:30 +00:00
Dmitry V. Levin
7aeecbff71
Explicitly set visibility of public API functions when gcc is used
...
Windows builds already limit exporting of functions to those marked
with LZ4LIB_API tag. The same behaviour could be achieved on other
platforms when a relatively fresh gcc is used.
This change assigns public visibility to all symbols marked with
LZ4LIB_API tag. When the library is built in -fvisibility=hidden
mode, only these marked symbols will be exported.
2017-03-10 23:35:30 +00:00
Yann Collet
93b3b08ef6
Merge pull request #330 from inikep/dev
...
fix bench
2017-03-10 14:47:16 -08:00
Przemyslaw Skibinski
cb1671955a
bench.c: respect LZ4_MAX_INPUT_SIZE limit
2017-03-10 20:49:25 +01:00
Przemyslaw Skibinski
517d446d7e
Merge remote-tracking branch 'refs/remotes/lz4/dev' into dev
2017-03-10 20:43:53 +01:00
remittor
36842ebb19
lz4hc: Fix LZ4HC_compress_hashChain for backward compatibility
2017-03-09 12:19:24 +03:00
remittor
baa155088b
lz4hc: Fix LZ4HC_compress_hashChain for full support destSize variant
2017-03-08 18:49:55 +03:00
remittor
66b26a389f
tests: fuzzer: Add test for LZ4_compressHC_destSize
2017-03-08 11:13:28 +03:00
remittor
f007153e3f
lz4hc: Add LZ4_compressHC_destSize and LZ4_compress_HC_continue_destSize
2017-03-08 11:11:15 +03:00
remittor
45b592b7ec
lz4hc: Cleanup function LZ4HC_encodeSequence
2017-03-08 00:30:54 +03:00
remittor
534f8fa5d6
lz4hc: Cleanup function LZ4HC_compress_hashChain
2017-03-07 17:11:48 +03:00
Yann Collet
9141ada8de
Merge pull request #328 from ldv-alt/dev
...
Fix test-lz4-basic
2017-03-05 16:15:08 -08:00
Dmitry V. Levin
0dfb0b9dad
Fix test-lz4-basic
...
When no output filename is specified and stdout is not a terminal,
lz4 doesn't attempt to guess an output filename and uses stdout for
output.
This change fixes test-lz4-basic when run without a terminal
by specifying output filenames.
2017-03-05 23:28:25 +00:00
Yann Collet
97df1c9789
updated LICENSE
...
to avoid risks of confusion on GPLv2 licensed code.
GPLv2 code is not _intended_ to be integrated into 3rd party application,
but it can be used for that nonetheless (provided compliance with GPLv2 licence).
It just receives less focus and support into this direction.
2017-02-28 15:12:24 -08:00
Yann Collet
5bfdff96b5
Merge pull request #320 from inikep/dev
...
remove MOREFLAGS from test-lz4c32
2017-02-16 08:39:03 -08:00
Przemyslaw Skibinski
d3eaf78838
remove MOREFLAGS from test-lz4c32
2017-02-16 16:30:16 +01:00
Yann Collet
5bb6ba7949
Merge pull request #319 from inikep/dev
...
Circle CI tests
2017-02-16 07:21:42 -08:00
Przemyslaw Skibinski
ca2c5fd3c6
CFLAGS=-I/usr/include/x86_64-linux-gnu
2017-02-16 00:17:42 +01:00
Przemyslaw Skibinski
ace22424d8
circle.yml: fixed lz4c32 target (2)
2017-02-15 23:19:30 +01:00
Przemyslaw Skibinski
0d77c85d9d
circle.yml: fixed lz4c32 target
2017-02-15 22:10:11 +01:00
Yann Collet
24007bb4e6
Merge pull request #318 from esiegerman/eks/mklib
...
Explicitly create $(DESTDIR)$(LIBDIR)/ at install time
2017-02-15 10:53:56 -08:00
Przemyslaw Skibinski
4ee9bd5c3e
improved Circle CI tests
2017-02-15 18:24:42 +01:00
Przemyslaw Skibinski
c0a8d0ad87
added circle.yml
2017-02-15 17:36:00 +01:00
Przemyslaw Skibinski
3ec1591dbb
Merge remote-tracking branch 'refs/remotes/lz4/dev' into dev
2017-02-15 17:20:24 +01:00
Przemyslaw Skibinski
68a358769e
Avoid fseek()'s 2GiB barrier with MinGW
2017-02-15 17:17:57 +01:00
Przemyslaw Skibinski
40ad1e85d4
upgraded util.h
2017-02-15 17:16:15 +01:00
Eric Siegerman
eb51b2b8d9
Explicitly create $(DESTDIR)$(LIBDIR)/ at install time
...
This is needed on systems where it isn't the parent of
$(PKGCONFIGDIR), and so doesn't get created implicitly.
2017-02-14 22:12:26 -05:00
Yann Collet
69dbafc1c4
Merge pull request #317 from esiegerman/eks/no-andand-oror
...
Don't use "foo && false || true"
2017-02-14 14:22:16 -08:00
Eric Siegerman
b89cac7b2e
Don't use "foo && false || true"
...
Replace it with either:
test ! -f $FILE_THAT_SHOULD_NOT_EXIST
or:
! $COMMAND_THAT_SHOULD_FAIL
as appropriate.
2017-02-14 14:17:06 -05:00
Yann Collet
7e57c398c1
Merge pull request #316 from inikep/dev
...
Dev
2017-02-10 10:25:04 -08:00
Yann Collet
f4b9c1d034
Merge pull request #315 from bebehei/patch-1
...
update repolink in makefile
2017-02-10 10:24:04 -08:00
Przemyslaw Skibinski
c139eb40b0
added OpenBSD NetBSD SunOS to list of supported make install
OSes
2017-02-10 15:00:27 +01:00
Benedikt Heine
5e1a925bea
update repolink in makefile
2017-02-10 14:55:54 +01:00