summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* added documentation about LZ4_FORCE_SW_BITCOUNTYann Collet2020-08-262-8/+33
| | | | | Also : added memory-frugal software byte count for big endian 64-bit cpus. Disabled by default.
* Merge pull request #898 from aqrit/aqrit-prefixlenYann Collet2020-08-241-45/+46
|\ | | | | rejigger bit counting intrinsics
| * silence warningaqrit2020-08-171-2/+2
| | | | | | MSVC debug mode complains
| * rejigger bit counting intrinsicsaqrit2020-08-121-45/+46
| | | | | | | | | | Fix lz4/lz4#867 Optimize software fallback routines. Delete some faulty (and dead?) MSVC big endian code.
* | Merge pull request #902 from lz4/realhwYann Collet2020-08-241-0/+15
|\ \ | | | | | | added target aarch64, ppc64lw and s390x to TravisCI
| * | added target aarch64, ppc64lw and s390x to TravisCIYann Collet2020-08-221-0/+15
| | | | | | | | | | | | more portability tests
* | | Merge pull request #907 from terrelln/travisYann Collet2020-08-241-1/+1
|\ \ \ | | | | | | | | [CI][ossfuzz] Fix string equal
| * | | [CI][ossfuzz] Fix string equalNick Terrell2020-08-241-1/+1
| |/ /
* | | Merge pull request #903 from lz4/nofastforceYann Collet2020-08-241-16/+0
|\ \ \ | |/ / |/| | removed LZ4_compress_fast_force()
| * | removed LZ4_compress_fast_force()Yann Collet2020-08-221-16/+0
|/ / | | | | | | | | | | | | | | | | | | | | | | which serves no more purpose. The comment implies that the simple presence of this unused function was affecting performance, and that's the reason why it was not removed earlier. This is likely another side effect of instruction alignment. It's obviously unreliable to rely on it in this way, meaning that the impact will be different, positive of negative, with any minor code change, and any minor compiler version change, even parameter change.
* | Merge pull request #886 from servusDei2018/devYann Collet2020-08-211-3/+2
|\ \ | | | | | | Optimized by replacing `endl` with `'\n'`
| * | Optimized by replacing `endl` with `'\n'`Nate2020-07-241-3/+2
| | |
* | | Merge pull request #900 from terrelln/cmake-buildYann Collet2020-08-2030-16/+19
|\ \ \ | | | | | | | | [build] Move CMake and Visual build systems to build/
| * | | [build] Move CMake and Visual build systems to build/Nick Terrell2020-08-2030-16/+19
| | | | | | | | | | | | | | | | Fixes #852.
* | | | Merge pull request #901 from terrelln/travisYann Collet2020-08-201-1/+6
|\ \ \ \ | |/ / / |/| | | [CI][Fuzz] Fix Travis-CI fuzzer tests
| * | | [CI][Fuzz] Fix Travis-CI fuzzer testsNick Terrell2020-08-201-1/+6
|/ / / | | | | | | | | | Fixes #781
* | | Merge pull request #897 from lz4/lz4wlibYann Collet2020-08-186-14/+36
|\ \ \ | | | | | | | | added target lz4-wlib
| * | | added target lz4-wlibYann Collet2020-08-116-14/+36
| | |/ | |/| | | | | | | | | | | | | | | | | | | variant of lz4 linking to liblz4 dynamic library requires the dynamic library to expose static-only symbols (experimental API) Example for #888
* | | Merge pull request #899 from lz4/endMarkYann Collet2020-08-143-30/+55
|\ \ \ | |/ / |/| | Clarifies and fix EndMark
| * | clarify endMark definitionYann Collet2020-08-141-4/+4
| | |
| * | Clarifies and fix EndMarkYann Collet2020-08-133-30/+55
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | EndMark, the 4-bytes value indicating the end of frame, must be `0x00000000`. Previously, it was just mentioned as a `0-size` block. But such definition could encompass uncompressed blocks of size 0, with a header of value `0x80000000`. But the intention was to also support uncompressed empty blocks. They could be used as a keep-alive signal. Note that compressed empty blocks are already supported, it's just that they have a size 1 instead of 0 (for the `0` token). Unfortunately, the decoder implementation was also wrong, and would also interpret a `0x80000000` block header as an endMark. This issue evaded detection so far simply because this situation never happens, as LZ4Frame always issues a clean 0x00000000 value as a endMark. It also does not flush empty blocks. This is fixed in this PR. The decoder can now deal with empty uncompressed blocks, and do not confuse them with EndMark. The specification is also clarified. Finally, FrameTest is updated to randomly insert empty blocks during fuzzing.
* | Merge branch 'fix832' into devYann Collet2020-08-111-2/+2
|\ \
| * | fixed test of gnu c versionYann Collet2020-08-111-2/+2
| | |
* | | Merge pull request #896 from lz4/fix832Yann Collet2020-08-101-7/+6
|\ \ \ | |/ / | | | fix #832
| * | fix #832Yann Collet2020-08-101-7/+6
| | | | | | | | | | | | does no longer rely on default 0-interpretation when __GNUC__ is not defined
* | | Merge pull request #895 from lz4/hugefastYann Collet2020-08-103-6/+21
|\ \ \ | |/ / |/| | Fix #876
| * | fix #876Yann Collet2020-08-102-6/+16
| | | | | | | | | | | | by introducing a max limit acceleration value
| * | add test that breaks --fastYann Collet2020-08-101-0/+5
| | | | | | | | | | | | | | | | | | with huge values, as expected from #876 Also : added target `check`
* | | Merge pull request #892 from felixhandte/lz4-clean-up-fast-resetYann Collet2020-08-103-29/+7
|\ \ \ | |/ / |/| | Remove dirty Flag in LZ4_stream_t
| * | Fix Enum CastsW. Felix Handte2020-08-101-5/+5
| | | | | | | | | | | | Fixes `-Wsign-compare` issues.
| * | Remove dirty Field From LZ4_stream_tW. Felix Handte2020-08-063-18/+2
| | |
| * | Remove Extraneous Reset in LZ4_attach_dictionary()W. Felix Handte2020-08-051-6/+0
| | | | | | | | | | | | | | | Nothing internally sets dirty anymore. The only way to get that is if you use an uninitialized context, in which case your warranty is void anyways.
* | | Merge pull request #856 from indragiek/indragiek/lz4f-visibilityYann Collet2020-08-081-6/+11
|\ \ \ | |/ / |/| | Add LZ4FLIB_VISIBILITY for controlling library symbol visibility
| * | LZ4LIB_VISIBILITY -> LZ4FLIB_VISIBILITY in commentIndragie Karunaratne2020-08-051-1/+1
| | |
| * | Add LZ4FLIB_VISIBILITY for controlling library symbol visibilityIndragie Karunaratne2020-04-261-6/+11
| | |
* | | Merge pull request #890 from terrelln/lz4-memcpyYann Collet2020-08-041-36/+51
|\ \ \ | | | | | | | | Call LZ4_memcpy() instead of memcpy()
| * | | Call LZ4_memcpy() instead of memcpy()Nick Terrell2020-08-031-36/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `LZ4_memcpy()` uses `__builtin_memcpy()` to ensure that clang/gcc can inline the `memcpy()` calls in freestanding mode. This is necessary for decompressing the Linux Kernel with LZ4. Without an analogous patch decompression ran at 77 MB/s, and with the patch it ran at 884 MB/s.
* | | | Merge pull request #885 from neheb/mesYann Collet2020-08-031-3/+2
|\ \ \ \ | |/ / / |/| | | meson: remove build requirement for distutils
| * | | meson: remove build requirement for distutilsRosen Penev2020-07-211-3/+2
| | |/ | |/| | | | | | | | | | | | | | | | | | | Tested on a default installation of Debian 10. Same as https://github.com/facebook/zstd/pull/2197 Signed-off-by: Rosen Penev <rosenp@gmail.com>
* | | Merge pull request #860 from adeason/old-style-definitionsYann Collet2020-07-291-2/+2
|\ \ \ | |/ / |/| | Avoid old-style function definitions
| * | Avoid old-style function definitionsAndrew Deason2020-05-071-2/+2
| | | | | | | | | | | | | | | | | | | | | Define 0-argument functions like foo(void) instead of foo(), in order to avoid a warning with -Wold-style-definition. This makes it easier to embed lz4.c in projects that compile with -Werror -Wold-style-definition.
| * | Merge pull request #780 from lz4/devYann Collet2019-08-2050-718/+2951
| |\ \ | | | | | | | | v1.9.2
* | \ \ Merge pull request #863 from Devernua/reducing_stack_usage_in_t_alignmentYann Collet2020-07-162-4/+4
|\ \ \ \ | | | | | | | | | | Reducing stack usage in _t_alignment checks
| * | | | Reducing stack usage in _t_alignment checksAleksandr Kukuev2020-05-112-4/+4
| | |_|/ | |/| |
* | | | Merge pull request #866 from sandyharvie/devYann Collet2020-07-143-1/+22
|\ \ \ \ | | | | | | | | | | Fix issue #865
| * | | | add testsChristopher Harvie2020-05-141-0/+18
| | | | |
| * | | | fix LZ4F_compressBound when automatic flushing is enabledChristopher Harvie2020-05-142-1/+4
| |/ / /
* | | | Merge pull request #871 from bimbashrestha/bsdYann Collet2020-07-141-1/+1
|\ \ \ \ | | | | | | | | | | [build] FreeBSD update version 12.0 -> 12.1
| * | | | bsd upsate to 12-1Bimba Shrestha2020-06-051-1/+1
| | | | |
* | | | | Merge pull request #884 from vectorizedio/clang-ubsanYann Collet2020-07-081-2/+2
|\ \ \ \ \ | | | | | | | | | | | | avoid computing 0 offsets from null pointers