Commit Graph

568 Commits

Author SHA1 Message Date
Yann Collet
6226d52eab fixed minor Visual warning 2017-03-29 14:18:10 -07:00
Yann Collet
b88df6b1b0 Improved comments on LZ4F_getFrameInfo()
and added LZ4F_resetCompressionContext()
2017-03-29 12:51:08 -07:00
Yann Collet
f0a7651fce Safer LZ4_getFrameInfo()
LZ4_getFrameInfo() is now guaranteed to keep dctx state clean,
even in case of failure.
2017-03-28 17:10:01 -07:00
Yann Collet
4567d0def5 Merge pull request #340 from lz4/optlz4opt
lz4opt
2017-03-24 17:10:45 -07:00
Yann Collet
38362c1d65 Merge pull request #338 from ldv-alt/dev
Export deprecated symbols declared in lz4hc.h
2017-03-24 12:03:32 -07:00
Yann Collet
60b6d2907f improved level 10 speed for degenerated cases 2017-03-24 11:29:35 -07:00
Yann Collet
8f8fc52fcf Merge branch 'dev' into optlz4opt 2017-03-24 11:00:40 -07:00
Yann Collet
0863931a1c fixed API comment for LZ4F_createCompressionContext()
as reported by @nh2
2017-03-24 10:34:18 -07:00
Dmitry V. Levin
dab3590fce Export deprecated symbols declared in lz4hc.h
Commit 25b2435885 exported deprecated
symbols declared in lz4.h by marking all LZ4_DEPRECATED functions with
LZ4LIB_API attribute.  This change does the same with functions declared
in lz4hc.h file, thus extending the export to lz4hc.h.

As result, the following 17 deprecated functions are exported again:

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_createHC
LZ4_freeHC
LZ4_resetStreamStateHC
LZ4_sizeofStreamStateHC
LZ4_slideInputBufferHC
2017-03-24 03:12:48 +00: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
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
e945a27f9c fix #333 : expose obsolete decoding functions
with deprecation warning.
notified by Chen Yufei
2017-03-14 21:21:54 -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
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
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
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
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
04ec092696 updated comments on block sizes 2017-02-08 11:02:32 -08:00
Przemyslaw Skibinski
8e1fd97d16 lz4frame.h: added Introduction 2017-01-23 17:46:32 +01:00
Przemyslaw Skibinski
9071df0fa5 lz4frame.h: prepared to generate manual 2017-01-23 16:22:00 +01:00
Przemyslaw Skibinski
f9f48f8ed9 lz4.h: improved manual generation 2017-01-23 16:02:51 +01:00
Przemyslaw Skibinski
489d1618c9 added "This Makefile is validated for" 2017-01-19 16:28:08 +01:00
Yann Collet
9683a1ae87 LZ4_MEMORY_USAGE can be modified from compilation command line 2017-01-05 16:50:37 +01: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
12aae846b3 fixed table update in LZ4_loadDictHC 2016-12-28 13:19:11 +01:00
Przemyslaw Skibinski
c8b31263cc added FUZ_CLEVEL_DEFAULT 2016-12-28 13:08:38 +01:00
Przemyslaw Skibinski
d57ff6456d changed default PREFIX and MANDIR 2016-12-28 11:27:17 +01:00
Przemyslaw Skibinski
20381a2fce fixed -BD compression 2016-12-27 15:31:35 +01:00
Przemyslaw Skibinski
e6536faf33 lib\Makefile: fixed INSTALL_DATA 2016-12-27 11:17:35 +01:00
Przemyslaw Skibinski
efaa9b7bc7 Merge remote-tracking branch 'refs/remotes/lz4/dev' into dev
# Conflicts:
#	lib/Makefile
2016-12-27 10:43:07 +01:00
Przemyslaw Skibinski
b22e2bed5e BSD: improved "make install" 2016-12-23 10:05:41 +01:00
Przemyslaw Skibinski
ea51ad0cee Solaris: working "make install" 2016-12-23 00:02:01 +01:00
Yann Collet
19c0f21b00 updated Makefile : lz4 no longer recompiled when already up-to-date 2016-12-22 18:02:09 +01:00
Yann Collet
52cac9a973 updated a few macros names 2016-12-22 11:41:05 +01:00
Yann Collet
70526a11e0 fixed lib/clean 2016-12-21 15:33:53 +01:00
Yann Collet
7cf0bb97b2 LZ4F_compressBound(0) provides upper bound for LZ4F_flush() and LZ4F_compressEnd() [#290, suggested by @vtermanis] 2016-12-21 14:18:01 +01:00
Yann Collet
385cb4f539 minor update Makefile 2016-12-21 13:18:02 +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
8c2f23c130 fixed LZ4_STREAMHCSIZE 2016-12-07 16:24:35 +01:00
Przemyslaw Skibinski
76228f064a LZ4HC_DICTIONARY_LOGSIZE 17 2016-12-07 16:19:10 +01:00
Przemyslaw Skibinski
8bfa42e61e improved ratio 2016-12-07 15:49:45 +01:00
Przemyslaw Skibinski
1289038240 15-bit LZ4HC_HASH_LOG 2016-12-07 14:31:46 +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
e3fee94742 LZ4HC_MAX_CLEVEL = 12 2016-12-07 12:16:33 +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
c1ef7a177f introduced LZ4HC_compress_hashChain 2016-12-06 15:21:28 +01:00
Przemyslaw Skibinski
3f430daf7a added lz4opt.h 2016-12-06 15:20:59 +01:00
Przemyslaw Skibinski
5ae0e789fc Merge remote-tracking branch 'refs/remotes/lz4/dev' into dev 2016-12-06 13:44:42 +01:00
Yann Collet
5eb547a608 fix #283 : implement LZ4_versionString(). 2016-12-04 20:05:36 +01:00
Yann Collet
a9a8dbf7c1 fixed minor display error when using -r 2016-11-28 04:01:02 -08:00
Yann Collet
f4c74e6fac library release build compatible with environment variable 2016-11-22 11:52:43 -08:00
Yann Collet
7819d58787 new test case with fPIE 2016-11-22 11:18:07 -08:00
Przemyslaw Skibinski
65a542579b updated README.md 2016-11-22 11:14:11 +01:00
Yann Collet
8b233b228d added a few dates 2016-11-21 15:51:39 -08:00
Yann Collet
742f2b683e added doc in code comments 2016-11-21 14:13:00 -08:00
Takayuki MATSUOKA
b4db9d7e35 Add C++14 standard [[deprecated]] attribute
See also
For __cplusplus predefined macro, https://gcc.gnu.org/onlinedocs/cpp/Standard-Predefined-Macros.html
For [[deprecated]] attribute, https://isocpp.org/wiki/faq/cpp14-language#deprecated-attribute
2016-11-19 22:08:48 +09:00
Yann Collet
19df3029e2 fixed #272 (compilation fails on gcc 4.4), reported by @totaam 2016-11-18 17:56:56 -08:00
Yann Collet
a91983daa0 highly improved speed on -mx32 mode
Now -mx32 is fastest mode on x64 CPU
2016-11-18 17:05:06 -08:00
Yann Collet
8e1ea59ad6 attempt to fix sanitize32 package dependency 2016-11-17 18:30:46 -08:00
Yann Collet
1abecbc33c fix 32-bits mode.
Large File support for Mac OS-X in 32-bits mode
Fixed potential undefined behavior
Changed makefile for 32-bits mode
2016-11-17 13:02:06 -08:00
Yann Collet
7fde7438d3 Merge branch 'dev' of github.com:Cyan4973/lz4 into dev 2016-11-16 11:37:05 -08:00
Przemyslaw Skibinski
2dee7bdaf6 include NEWS in lz4_x64.zip and lz4_x86.zip 2016-11-16 11:06:28 +01:00
Przemyslaw Skibinski
632ab3b8d4 updated programs\README.md 2016-11-16 10:53:06 +01:00
Przemyslaw Skibinski
8b48d5e446 updated example\README.md 2016-11-16 09:53:07 +01:00
Przemyslaw Skibinski
11f6217cc2 created dll\example directory 2016-11-16 09:32:26 +01:00
Przemyslaw Skibinski
7b6a9d8638 Merge remote-tracking branch 'refs/remotes/lz4/dev' into dev 2016-11-16 09:01:45 +01:00
Przemyslaw Skibinski
2e10aab20f MinGW doesn't require the import library at all 2016-11-16 08:59:18 +01:00
Yann Collet
7cecc7b089 fixed a limit case scenario 2016-11-15 17:51:29 -08:00
Yann Collet
d2be69b144 fixed minor coverity warnings 2016-11-15 14:46:57 -08:00
Yann Collet
b44790cf98 Merge pull request #270 from inikep/dev
autobuild executables
2016-11-15 11:24:26 -08:00
Przemyslaw Skibinski
e583dd0566 ImageHasSafeExceptionHandlers=false 2016-11-15 16:01:38 +01:00
Przemyslaw Skibinski
eb160e1a2c appveyor.yml: added liblz4_x86.zip 2016-11-15 14:09:36 +01:00
Przemyslaw Skibinski
45b8623afa updated lib\dll\README.md 2016-11-15 13:49:20 +01:00
Przemyslaw Skibinski
5625cc21ea appveyor.yml: generate DLL package 2016-11-15 13:29:33 +01:00
Przemyslaw Skibinski
c093e256d4 added files used by DLL package 2016-11-15 12:57:56 +01:00
Przemyslaw Skibinski
be471c69da added fullbench-dll.sln that works with gcc/MinGW 2016-11-15 12:57:03 +01:00
Przemyslaw Skibinski
f71340ce1d DLL dependencies moved to lib/dll/ 2016-11-15 11:06:16 +01:00
Yann Collet
923cf4447f bump version number 2016-11-14 18:09:31 -08:00
Yann Collet
4c5c711b7a fixed minor conversion warning 2016-11-14 14:53:15 -08:00
Yann Collet
f094f53144 silence a minor msan warning 2016-11-14 14:38:46 -08:00
Yann Collet
0fe5c187a5 fixed minor msan warning 2016-11-14 11:34:10 -08:00
Yann Collet
fa158b4118 fixed nameless union warnings 2016-11-14 10:02:01 -08:00
Yann Collet
84af32d491 Merge branch 'dev' of github.com:Cyan4973/lz4 into dev 2016-11-14 08:52:23 -08:00
Yann Collet
5a5ebeec15 clang and g++ tests restricted to native only on Travis CI Ubuntu v12 environment 2016-11-14 08:51:28 -08:00
Yann Collet
569897dddd Merge pull request #269 from inikep/dev
Dev
2016-11-14 08:27:06 -08:00
Yann Collet
1b24cc1155 fixed conversion warnings 2016-11-14 07:10:31 -08:00
Przemyslaw Skibinski
9ad7508db0 Merge remote-tracking branch 'refs/remotes/lz4/dev' into dev 2016-11-14 11:29:11 +01:00
Yann Collet
84b97f90b8 fuzzer code refactoring
fix g++ conversion warning
2016-11-12 17:14:57 -08:00
Yann Collet
94542d8458 made lz4hc explicitly dependent on lz4 2016-11-12 15:50:29 -08:00
Yann Collet
bb97e8a6fd fixed __GNUC__ macro 2016-11-12 13:30:02 -08:00
Yann Collet
3580d96980 enabled deprecation warnings on remaining obsolete functions 2016-11-12 08:48:42 -08:00
Yann Collet
874f3e095b update code comments 2016-11-12 07:29:54 -08:00
Yann Collet
e528a82f01 Merge pull request #267 from terrelln/strict-aliasing
Expose internal types to remove strict aliasing
2016-11-11 16:54:51 -08:00
Yann Collet
3d456bdf2a fixed conversion warnings 2016-11-11 15:40:58 -08:00
Yann Collet
bf6dda69e6 updated frametest 2016-11-11 15:11:56 -08:00
Nick Terrell
85aeb0e4bb Expose internal types to remove strict aliasing 2016-11-11 13:00:02 -08:00
Przemyslaw Skibinski
ec6fb477b2 added visual\README.md 2016-11-11 08:57:46 +01:00
Yann Collet
4f9db1383a updated xxhash lib 2016-11-10 18:34:49 -08:00
Nick Terrell
5b37837e6e Fix license and remove references to zstd 2016-11-10 17:27:56 -08:00
Yann Collet
1f246a9899 Fixed #178 fullbench on small input 2016-11-10 15:31:59 -08:00
Przemyslaw Skibinski
52251d9709 Using MinGW+MSYS to create DLL 2016-11-10 18:30:59 +01:00
Przemyslaw Skibinski
72a4a84df7 udated README.md 2016-11-10 17:49:42 +01:00
Przemyslaw Skibinski
2ecce6f151 lz4.h: added Introduction section 2016-11-10 17:22:59 +01:00
Przemyslaw Skibinski
063b4d92e1 fixed make install 2016-11-09 16:23:08 +01:00
Przemyslaw Skibinski
773ae50b47 DLL exports only functions defined in liblz4.def 2016-11-09 16:07:28 +01:00
Przemyslaw Skibinski
ca80a7c8f7 create DLL with MinGW/MSYS 2016-11-09 15:19:29 +01:00
Przemyslaw Skibinski
67fd5dffd9 updated appveyor.yml 2016-11-09 14:05:44 +01:00
Przemyslaw Skibinski
7df658ec1b removed LZ4_DLL_EXPORT=1 (2) 2016-11-09 12:52:27 +01:00
Przemyslaw Skibinski
fe5148417f introduced LZ4_COMPILED_AS_DLL 2016-11-09 11:45:55 +01:00
Przemyslaw Skibinski
0a22bf7d6e err0r(LZ4F_errorCodes code) uses ptrdiff_t 2016-11-08 11:47:03 +01:00
Przemyslaw Skibinski
d06ab4f415 test powerpc64 2016-11-08 11:16:16 +01:00
Yann Collet
c7ab95faa5 slightly improved HC compression ratio 2016-11-07 19:32:24 -08:00
Yann Collet
e9089bcbe4 small compression ratio and speed improvement on small files 2016-11-07 17:31:38 -08:00
Yann Collet
f6a7c6b578 Merge branch 'dev' of github.com:Cyan4973/lz4 into dev 2016-11-07 10:31:43 -08:00
Przemyslaw Skibinski
d61bb74f20 updated declaration of LZ4F_freeDecompressionContext 2016-11-07 14:14:42 +01:00
Przemyslaw Skibinski
58ead8dd27 fixed appveyor.yml 2016-11-07 13:00:08 +01:00
Nick Terrell
920bf21714 Fix LZ4_decompress_fast_continue() bug
It specified the external dictionary location incorrectly.
Add tests that expose this bug with both normal compilation and ASAN.
2016-11-04 20:01:23 -07:00
Yann Collet
207f478bab minor refactor 2016-11-04 19:04:32 -07:00
Yann Collet
96565816bd restricted deprecation warning to fairly recent gcc versions (>=6.0) 2016-11-04 17:11:06 -07:00
Yann Collet
eaad740ac7 lz4frame obsolete enum should trigger deprecation warnings (on supported compilers) 2016-11-04 16:58:34 -07:00
Yann Collet
079d5dd54b removed support for old error code enums from lz4frame_static.h, to free up namespace.
note : lz4frame_static.h does not guaranteed API stability.
note 2 : the macro to enable old error code enums is still present. Just needs to comment one line to re-enable them.
2016-11-04 16:29:43 -07:00
Nick Terrell
f30c56c083 Quiet gcc-4.6.3 narrowing warning 2016-11-04 12:34:28 -07:00
Yann Collet
f878c08b76 better correctness on big-endian 64-bits platforms 2016-11-04 07:24:21 -07:00
Yann Collet
26dec498cf small compression speed improvement on 64-bits systems 2016-11-04 07:18:03 -07:00
Yann Collet
4c6610709e minor code refactoring 2016-11-03 20:32:51 -07:00
Yann Collet
eda8c4eb1c fix #198 : no longer requires to restart streaming decompression from where it stopped.
It permits relocating remaining data into another memory space.
Still, the same content must be presented.
2016-11-03 18:46:07 -07:00
Yann Collet
4791cda04a fixed strict warnings 2016-11-03 17:31:41 -07:00
Yann Collet
258a5e7fa4 updated comments 2016-11-03 17:14:25 -07:00
Przemyslaw Skibinski
84cedb4632 updated links to LZ4 repository 2016-11-03 15:12:57 +01:00
Przemyslaw Skibinski
88cef262ec documentation moved to doc/ 2016-11-03 13:25:20 +01:00
Yann Collet
67500142c1 Clarified license (#115, #244) 2016-11-01 19:14:04 -07:00
Yann Collet
7e112cfa5c fixes static compilation under Windows (#246) 2016-10-21 09:49:30 -07:00
Yann Collet
52cdb4a5f4 Merge pull request #241 from vapier/dev
add a flag to disable static libs
2016-09-23 15:59:39 +02:00
Mike Frysinger
43b631223b add a flag to disable static libs 2016-09-22 23:59:02 -04:00
Kouhei Sutou
59771f41cd Use different prefix for each file to avoid conflict 2016-09-23 10:38:44 +09:00
Kouhei Sutou
012c66536c Add LZ4LIB_API
It's based on Zstandard's ZSTDLIB_API.

See also: https://github.com/Cyan4973/lz4/issues/216#issuecomment-226245432

Deprecated functions aren't LZ4LIB_API targets. Because we don't need to
export deprecated functions from now.

There are same LZ4LIB_API definitions in each header files instead of
including a common header file because LZ4_DEPRECATED is defined so.
2016-09-23 00:39:45 +09:00
Yann Collet
3b9439ccd0 updated uninstall 2016-09-17 11:59:13 +02:00
Yann Collet
8eae1320c2 Merge pull request #236 from inikep/dev
fix bug #232 at https://github.com/Cyan4973/lz4/issues/232
2016-09-06 16:49:34 +02:00
Yann Collet
33993542af removed test artefacts 2016-09-06 16:46:52 +02:00
inikep
3eb143fffa fix bug #232 at https://github.com/Cyan4973/lz4/issues/232 2016-09-06 10:36:16 +02:00
Yann Collet
28f98647e3 lz4 version source from lz4.h 2016-09-02 22:04:16 -07:00
Yann Collet
64f556e610 lz4cli version number from lz4.h 2016-09-02 19:32:06 -07:00
Yann Collet
5871585b6a coding style change 2016-09-02 19:06:01 -07:00
inikep
2cf32ef0f1 -b# and -e# options from zstd 2016-09-02 22:59:18 +02:00
Georg Sauthoff
681d5010d5 use gnu c99 to get both c99 and POSIX
when compiling with gcc

fixes fileno() implicitly defined on Linx and compile error on Solaris 10
2016-08-27 15:24:50 +02:00
Yann Collet
5bd3eaa481 minor comments 2016-08-21 00:08:38 +02:00
Yann Collet
9578ff539d minor refactor 2016-08-20 23:59:45 +02:00
Yann Collet
a7672dc4f9 minor decompression speed gains 2016-08-20 23:52:20 +02:00
Yann Collet
63d22e7a19 minor comments clarifications 2016-08-20 23:22:29 +02:00
Yann Collet
74e6afc5dc minor comments clarification 2016-08-11 18:55:42 +02:00
Yann Collet
2ac9ecec68 Fixed #157 : LZ4F_getFrameInfo() fails on valid null-content frame 2016-08-11 14:55:39 +02:00
Ben Wiederhake
d3e2d80266 Use https wherever possible 2016-07-08 00:46:02 +02:00
Ben Wiederhake
6540030033 Use correct 'repository' hostname 2016-07-08 00:45:18 +02:00
Yann Collet
91cce757f5 Updated xxhash library to v0.6.1 2016-06-29 21:48:27 +02:00
Yann Collet
5540f4f93e stronger compilation flags 2016-06-29 20:25:10 +02:00
Yann Collet
19e585cc46 modified : some more deprecated functions from lz4hc.h generate warnings 2016-06-29 18:18:34 +02:00
Yann Collet
6b1600f41e changed : default benchmark LZ4_decompress_safe() 2016-06-29 17:48:28 +02:00
Yann Collet
6923f3e230 Minor refactoring (code style) 2016-06-29 17:12:24 +02:00
Yann Collet
410ec81543 Fixed : alignment warning 2016-06-29 17:02:09 +02:00
Yann Collet
bc342ab94c minor refactoring 2016-06-29 16:01:24 +02:00
Yann Collet
c8a573d32c very minor decompression speed gain 2016-06-29 15:04:19 +02:00
Yann Collet
e27e7316dd minor code refactoring 2016-06-29 14:54:07 +02:00
Yann Collet
8938e10742 minor compression speed improvement 2016-06-29 14:07:54 +02:00
Yann Collet
c77c0c1086 minor refactoring 2016-06-29 13:21:23 +02:00
Yann Collet
3c03326004 minor refactoring (coding style) 2016-06-29 12:54:23 +02:00
Martin Waschbüsch
7bfbccb972 Add FreeBSD to install targets
Add FreeBSD to install targets
2016-05-17 07:47:03 +02:00
Irwan Djajadi
bc70a4b72e fixed non-C99 compilers 2016-04-19 15:06:15 -05:00
Irwan Djajadi
10e3eecc56 fixed non-C99 compiler 2016-04-19 15:01:35 -05:00
Irwan Djajadi
973baa2c19 Merge branch 'heapmode_alloc_failure_fix' into dev 2016-04-19 08:22:56 -05:00
Irwan Djajadi
3e5bb67537 alloc failure fix 2016-04-18 15:51:32 -05:00
John Zhuge
cf6652f9b9 lz4cli: print library version 2016-04-01 07:07:25 -07:00
Julius Werner
dc868cd5b1 Allow for safe in-place decoding
Add a check to allow safe "in-place" decoding (meaning that the
beginning of the source buffer partially overlaps the end of the
destination buffer). This is usually possible as long as the output
stops at least 15 bytes before the end of the input buffer (7 to account
for the extra spill from LZ4_wildCopy, 4 for a possible block checksum,
and 4 for the terminating block header), but in some pathological edge
cases it could be possible for the output stream to overwrite a byte in
the input stream before it gets decoded. With this patch the decoder
will reliably detect those cases and return a decoding error.

Signed-off-by: Julius Werner <jwerner@chromium.org>
2016-02-12 22:52:51 -08:00
Julius Werner
4fcb2e17fb Remove whitespace from ends of lines
I'm trying to import LZ4 code into a project with strict linting
requirements. This will make that easier.

Signed-off-by: Julius Werner <jwerner@chromium.org>
2016-02-12 22:49:52 -08:00
Yann Collet
2c80138121 heapmode macro option for lz4hc 2015-10-21 15:00:48 +01:00
Yann Collet
ff3324b8d5 Fix : compiler-independent macro to remove deprecation warnings 2015-10-21 12:58:06 +01:00
Yann Collet
cd18ed3086 create link to dynamic library without using cp -a (#147) 2015-09-01 16:55:55 +01:00
Yann Collet
fb6fece770 Updated Makefile and .travis 2015-09-01 15:59:24 +01:00
Yann Collet
9aa5504f0c New unalign access method 2015-08-19 18:16:17 +01:00
Yann Collet
e5aee601ef updated xxhash 2015-08-19 17:54:19 +01:00
Yann Collet
d15ac1f1a7 Slightly improved compression speed on ARMv6 2015-08-16 02:33:57 +01:00
Yann Collet
0f2bf0c54e Improved performance on ARMv6 2015-08-16 01:54:55 +01:00
Yann Collet
4b4384772a Updated xxhash to r41 2015-08-16 00:55:32 +01:00
Yann Collet
60119e2585 Makefile : generates *.o for faster processing 2015-08-15 17:21:45 +01:00
Yann Collet
9517bd9234 minor simplification lz4_readarch() 2015-08-06 03:49:29 +01:00
Yann Collet
00eedb37d1 minor refactor 2015-07-16 09:38:10 +01:00
Yann Collet
3e579afa6d Slightly improved decompression speed
Slightly decreased decompression stack usage in 64-bits mode
2015-07-16 09:03:55 +01:00
Yann Collet
795a2cdb1b sligthly improved decompression speed 2015-07-16 08:55:48 +01:00
Yann Collet
a3c6daba6e liblz4 : Moved XXH_NAMESPACE to CPPFLAGS 2015-07-02 10:29:24 -08:00
Yann Collet
dfabec2d18 Fixed a few minor visual analyzer warnings 2015-06-29 00:31:41 -08:00
Yann Collet
aa1350e139 lz4hc : added one malloc test 2015-06-28 19:51:11 -08:00
Yann Collet
0cc38f9ebc Updated lib readme 2015-06-27 14:15:45 -08:00
Yann Collet
192ee724a3 Added namespace ability to xxhash 2015-06-27 12:43:28 -08:00
Yann Collet
c04df7e1b5 Changed : static library is no longer compiled with -fPIC by default (this option can still be added on the command line) See #53 2015-06-27 01:30:31 -08:00
Yann Collet
b17d3220d2 Minor lib readme update 2015-06-18 06:38:19 -08:00
Yann Collet
91c1b9a682 Performance fix : big compression speed boost for clang (+30%) 2015-05-21 01:17:56 +01:00
Yann Collet
05c3f66bb8 Updated a few comments 2015-05-12 10:10:20 +01:00
Yann Collet
672bfdebd0 Updated comments 2015-05-06 20:23:06 +01:00
Yann Collet
b4ef93a837 Fixed typo 2015-05-06 10:26:59 +01:00
Yann Collet
efbebd2a99 Added : LZ4_compress_destSize() 2015-05-06 02:29:04 +01:00
Yann Collet
1c3e633c48 Added compilation flag -Wcast-qual 2015-05-06 01:58:24 +01:00
Yann Collet
e05088d0eb Updated lz4hc API 2015-05-03 20:57:21 +01:00
Yann Collet
b4348a4718 Fixed minor Visual warning 2015-05-03 18:06:01 +01:00
Yann Collet
1b17bf2ab8 New lz4 API, using LZ4_compress_fast() 2015-05-03 17:57:46 +01:00
Yann Collet
791512cfdd Fixed bug 9318 2015-05-02 19:10:28 +01:00
Yann Collet
2a974d73c3 refactored lz4hc 2015-05-02 15:44:43 +01:00
Yann Collet
ad2dd6df3f moved lz4frame context types to incomplete typedef 2015-04-27 02:31:56 +01:00
Yann Collet
c9cbb8fc06 Increased aligment requirement for lz4frame context pointer 2015-04-24 14:28:06 +01:00
Yann Collet
ef55dfb000 Modified lz4frame context typedef, to enforce stricter alignment condition 2015-04-24 13:26:53 +01:00
Yann Collet
d6dc0a410d streaming API : Improved ring buffer management 2015-04-24 10:15:12 +01:00
Yann Collet
9c6fb8b160 Added LZ4_compress_fast_extState() 2015-04-23 07:46:35 +01:00
Yann Collet
b05d3d71a6 Frame content size disabled by default when using LZ4F_compressFrame(), to be in better coherence with the advanced API LZ4F_compress_update() 2015-04-22 00:57:39 +01:00
Yann Collet
b805d581b9 Removed obsolete functions from lz4 cli 2015-04-21 19:07:31 +01:00
Yann Collet
f11afafe23 Removed LZ4_compress() (obsolete) from lz4 2015-04-21 18:31:35 +01:00
Yann Collet
72e679438f Updated LZ4F_freeDecompressionContext(), to provide stage hint as result 2015-04-20 12:23:33 +01:00
Yann Collet
a01e10dbdc Changed LZ4F compressionLevel from unsigned to signed, in anticipation for LZ4_compress_fast() integration. 2015-04-20 12:12:02 +01:00
Yann Collet
409f816267 Updated LZ4F_getFrameInfo() behavior, related to uncomplete frame header decoding attempts 2015-04-19 15:23:53 +01:00
Yann Collet
2cf8a19e9d minor header refactoring 2015-04-16 09:57:46 +01:00
Takayuki MATSUOKA
d153aaa1c2 Add LZ4F_OBSOLETE_ENUM() to describe obsolete enums
- Add LZ4F_OBSOLETE_ENUM() to describe obsolete enums
 - Add compatible typedefs for obsolete enum types
 - Remove constant macros
2015-04-16 12:42:26 +09:00
Yann Collet
4e574e7395 Updated lz4frame error names 2015-04-15 10:34:08 +01:00
Yann Collet
d37926b0b5 Merge pull request #95 from t-mat/issue/90
Modified lz4frame enum, by @t-mat
2015-04-15 10:39:38 +02:00
Takayuki MATSUOKA
3d46d4b144 Fix LZ4_DEPRECATED() in lz4hc.h 2015-04-15 14:19:17 +09:00
Takayuki MATSUOKA
585bab8121 Issue#90 : Change old enum to macro to maximize compatibility 2015-04-15 06:45:25 +09:00
Takayuki MATSUOKA
081bcca33b Issue#90 : Add LZ4F_ prefix
- Add LZ4F_ prefix to LZ4 frame related enums.
 - Also add conditional macro LZ4F_DISABLE_OLD_ENUMS for testing and users who prefer strict prefixes.
2015-04-15 06:45:24 +09:00
Takayuki MATSUOKA
e1283c7991 Fix LZ4_DEPRECATED() for older/non-gcc/clang/MSVC compilers 2015-04-15 06:39:05 +09:00
Takayuki MATSUOKA
d7298d2059 Replace GCC_VERSION with LZ4_GCC_VERSION 2015-04-15 06:39:04 +09:00
Charles Allen
b664a72145 Revert "Revert "Add more descriptive frame errors""
This reverts commit 5a66527084.
2015-04-14 13:33:43 -07:00
Yann Collet
05a46fc59a Changes LZ4F_compressBound() definition using NULL prefsPtr to cover worst case instead of default. 2015-04-14 18:51:36 +01:00
Yann Collet
2852b9e439 Fixed issue #84 2015-04-12 15:17:10 +01:00
Yann Collet
138673df5e fixed minor g++ warning 2015-04-12 09:37:34 +01:00
Yann Collet
cc8d617ed0 Merge pull request #82 from t-mat/add-lz4-prefix
Add LZ4 prefix to deprecation macros
2015-04-12 10:34:44 +02:00
Yann Collet
81fdd9df23 Fixed a few Valgrind warnings 2015-04-12 09:29:52 +01:00
Takayuki MATSUOKA
ad86910b1b Add LZ4 prefix to deprecation macros
Replace the following macros:

 - "_DEPRECATE_WARNING_DEFBLOCK" to "LZ4_DEPRECATE_WARNING_DEFBLOCK"
 - "DEPRECATED" to "LZ4_DEPRECATED"
2015-04-12 17:28:53 +09:00
Yann Collet
62ed153195 Fixed : a few minor coverity warnings 2015-04-12 08:21:35 +01:00
Yann Collet
9443f3d924 Extended obsolete warning messages to lz4hc 2015-04-11 19:12:03 +01:00
Yann Collet
973e385fa3 Implemented obsolete warning message 2015-04-11 18:59:22 +01:00
Yann Collet
be9d248851 Update lz4hc API : LZ4_compressHC_safe() 2015-04-11 12:28:09 +01:00
Yann Collet
a07db74d24 Clarified lz4frame.h inline doc 2015-04-11 10:46:16 +01:00
Yann Collet
f344fbd3ca Fixed a few warnings from -fsanitize=undefined 2015-04-09 22:59:07 +01:00
Yann Collet
2f8a4c32f9 New LZ4_compress_safe() API 2015-04-09 13:34:38 +01:00
Yann Collet
78d2dfd427 fullbench : tests of _limitedOutput variants intentionnally provides less memory space than safe (LZ4_compressBound()) 2015-04-01 18:21:03 +01:00
Yann Collet
ef7cd83271 Fixed issue 160, reported by Eric Berge 2015-04-01 17:30:36 +01:00
Yann Collet
28e237e954 simplified LZ4_compress_limitedOutput() 2015-04-01 15:53:08 +01:00
Yann Collet
76a03c1035 simplified LZ4_compress_withState() 2015-04-01 14:59:42 +01:00
Yann Collet
6625068902 simplified LZ4_compress() 2015-04-01 14:48:24 +01:00
Yann Collet
a761546b1b Fix : minor warning under Visual 2015-03-31 18:52:52 +01:00
Yann Collet
3bba55c741 Fixed : Windows compilation
Added : Appveyor badge
2015-03-31 14:47:23 +01:00
Yann Collet
5b9fb69715 minor tweak 2015-03-30 22:39:08 +01:00
Yann Collet
4c227a487e Added LZ4_compress_fast() 2015-03-30 21:32:25 +01:00
Yann Collet
6c69dc176c faster compression in 64 bits mode 2015-03-30 18:34:15 +01:00
Yann Collet
eeb8bea34c Updated comments on LZ4F_getFrameInfo() 2015-03-30 16:36:57 +01:00
Yann Collet
002ec60f0f restored lz4hc compression ratio 2015-03-30 15:57:26 +01:00
Yann Collet
8cb06d5b99 lz4frame validates contentSize during decompression 2015-03-29 13:28:32 +01:00
Yann Collet
d5da787c1b Changed struct member to contentSize 2015-03-29 11:20:09 +01:00
Yann Collet
a357f434f0 Fixed cast-align warnings on 32-bits 2015-03-25 18:06:40 +01:00
Yann Collet
7cf4e5c941 Updates tests & Man pages 2015-03-22 13:42:00 +01:00
Yann Collet
86715b2541 Some more tests related to frame content size 2015-03-19 01:05:59 +01:00
Yann Collet
7ee725645b frame content size support 2015-03-18 21:38:27 +01:00
Yann Collet
7d87d43e61 Updated lz4io sparse file support (alignment properties) 2015-03-17 18:02:01 +01:00
Yann Collet
b54d256f56 minor lz4frame optimisation (no more malloc() on using LZ4F_compressFrame() in fast mode) 2015-03-16 23:22:59 +01:00
Yann Collet
da9402c6f5 minor lz4frame refactoring 2015-03-16 22:35:02 +01:00
Yann Collet
8edb7f1406 Added : Readme into lib directory, to explain what does each file 2015-03-16 21:48:40 +01:00
Yann Collet
2a02455fdf minor refactoring 2015-03-16 19:19:39 +01:00
Yann Collet
3a6832497b skippable frames support 2015-03-16 17:52:14 +01:00
Yann Collet
2b55752a5c changed "make install" default install directory to /usr/local 2015-03-15 20:40:38 +01:00
Yann Collet
bbcfe2144d Added : clang test 2015-03-15 14:19:47 +01:00
Yann Collet
45b0642bf5 scan-build tests 2015-03-15 01:42:27 +01:00
Yann Collet
45a357fd17 Improved sparse file support 2015-03-13 02:24:08 +01:00
Yann Collet
e38c268b5a Fixed minor g++ warnings 2015-03-11 20:11:14 +01:00
Yann Collet
e3f33d2579 Fixed minor warnings 2015-03-11 18:38:44 +01:00
Yann Collet
ceec6fa849 g++ compatibility 2015-03-10 16:57:42 +01:00
Yann Collet
e1d9b593e1 Fixed : static library (x64 binary) 2015-03-08 12:50:40 +01:00
Yann Collet
32a85fc76d NetBSD compatibility (#48) 2015-03-07 19:30:45 +01:00