Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | frame-api: add method to insert uncomressed data | Alexander Mohr | 2022-06-09 | 6 | -72/+214 |
| | | | | | | | | new method `uncompressed_update` allows to insert blocks without compression into the lz4 stream. The usage is documented in the frameCompress example Signed-off-by: Alexander Mohr <alexander.m.mohr@mercedes-benz.com> | ||||
* | introduced FORWARD_IF_ERROR() | Yann Collet | 2022-05-10 | 1 | -48/+49 |
| | | | | | | and removed prefix from RETURN_ERROR(_IF) to improve brevity as it's just a local macro (no bleeding in user's namespace). | ||||
* | introduced macro LZ4F_RETURN_ERROR_IF | Yann Collet | 2022-05-07 | 1 | -32/+23 |
| | |||||
* | introduced macro LZ4F_RETURN_ERROR | Yann Collet | 2022-05-07 | 1 | -37/+39 |
| | |||||
* | removed ERROR_GENERIC from lz4frame.h | Yann Collet | 2022-05-07 | 2 | -3/+4 |
| | | | | created a new error code in the process : LZ4F_ERROR_compressionState_uninitialized | ||||
* | update library version to v1.9.4 | Yann Collet | 2022-04-17 | 1 | -1/+1 |
| | | | | to reduce confusion in traces between dev branch and latest v1.9.3 release. | ||||
* | updated one error code | Yann Collet | 2022-04-06 | 1 | -1/+1 |
| | |||||
* | updated documentation around `liblz4` granularity | Yann Collet | 2022-03-21 | 1 | -6/+26 |
| | |||||
* | add file operation and examples | anjiahao | 2022-03-10 | 2 | -0/+404 |
| | | | | | | operate lz4 compressed files as a general files Signed-off-by: anjiahao <anjiahao@xiaomi.com> | ||||
* | added target test-compile-with-lz4-memory-usage | Yann Collet | 2022-01-31 | 2 | -4/+7 |
| | | | | and run it in GA CI | ||||
* | Introduce MIN and MAX bounds to LZ4_MEMORY_USAGE | Yann Collet | 2022-01-31 | 3 | -6/+16 |
| | | | | | | | ensure that `frametest` works fine with these values, notably with low LZ4_MEMORY_USAGE (dict test notably) following suggestions from @t-mat at #1016 | ||||
* | minor comments improvements to lz4frame | Yann Collet | 2022-01-31 | 1 | -4/+4 |
| | |||||
* | Merge pull request #1057 from lz4/lz4_unalign | Yann Collet | 2022-01-29 | 1 | -6/+6 |
|\ | | | | | renamed unaligned -> LZ4_unaligned | ||||
| * | renamed unaligned -> LZ4_unaligned | Yann Collet | 2022-01-29 | 1 | -6/+6 |
| | | | | | | | | | | better name space isolation suggested by @boris-kolpackov in #1053 | ||||
* | | fixed bug in optimal parser | Yann Collet | 2022-01-29 | 1 | -19/+17 |
|/ | | | | discovered by @yoniko. | ||||
* | Add comments | Ben Niu | 2022-01-27 | 1 | -0/+5 |
| | |||||
* | Disable _tzcnt_u64 for ARM64EC | Ben Niu | 2022-01-27 | 1 | -1/+1 |
| | | | The ARM64EC is a new Microsoft-designed ARM64 ABI that is compatible with AMD64 code. However, not all AMD64 intrinsic functions are supported. For, intrinsics that are lowered to AVX, AVX2 and AVX512 instructions are not supported, including the _tzcnt_u64. To make sure this file compiles for ARM64EC, the use of _tzcnt_u64 should be neutered. | ||||
* | Fix typos found by codespell | Dimitri Papadopoulos | 2021-11-25 | 5 | -6/+6 |
| | |||||
* | Enable fast decoding on Apple/AArch64 builds | Arseny Kapoulkine | 2021-11-22 | 1 | -3/+5 |
| | | | | | | | | | | | This makes decoding significantly faster on M1; measured on compressed source code across 8 hardware threads, decompressing 294 MB to 1301 MB takes 513 ms of cumulative work (2.53 GB/s) before, and 406 ms (3.2 GB/s) after this change on M1 Pro. There's no way to check if the target architecture is M1 specifically but the gains are likely to be similar on recent iterations on Apple processors, and the original performance issue was probably more specific to Qualcomm. | ||||
* | trim excess whitespace | a1346054 | 2021-08-21 | 1 | -1/+1 |
| | |||||
* | fix clang-cl _tzcnt_u64 not defined issue | Zeyi (Rice) Fan | 2021-08-09 | 1 | -0/+6 |
| | |||||
* | Don't reuse state memory that's too small. | Eddy Jansson | 2021-07-31 | 1 | -1/+13 |
| | | | | | | | Ensure that the memory block we're trying to reuse is large enough for the new state. Fixes #974 | ||||
* | Define LZ4_STREAMSIZE in terms of LZ4_MEMORY_USAGE | Eddy Jansson | 2021-07-31 | 1 | -1/+1 |
| | | | | | | This is required to correctly size a static member to hold the hash table, whose size is derived from LZ4_MEMORY_USAGE. | ||||
* | Merge pull request #1012 from eloj/print-install-dirs | Yann Collet | 2021-07-24 | 1 | -2/+2 |
|\ | | | | | Print target directories during 'make install'. | ||||
| * | Print target directories during 'make install'. | Eddy Jansson | 2021-07-24 | 1 | -2/+2 |
| | | | | | | | | This takes #975 to its logical conclusion. | ||||
* | | Expand use of pkg-config variables. | Eddy Jansson | 2021-07-24 | 2 | -2/+3 |
|/ | | | | | | | | | Change pkg-config generation such that the path variables, not their values, are used in the definitions of Libs and Cflags, and that $prefix is substituted into libdir and includedir iff they start with its value. This makes it easier to modify the already installed file if necessary. | ||||
* | fix LZ4HC_HEAPMODE macro guard | TotalJustice | 2021-06-25 | 1 | -3/+3 |
| | |||||
* | Cast ALLOC return value to satisfy C++ | Gabe Jones | 2021-06-15 | 1 | -1/+1 |
| | |||||
* | fix NULL ptr arithmetic at lz4:2299 | Yann Collet | 2021-05-28 | 1 | -2/+7 |
| | |||||
* | fix NULL ptr arithmetic in lz4:1680 | Yann Collet | 2021-05-28 | 1 | -3/+6 |
| | | | | only do arithmetic if offset > 0 | ||||
* | fix UB lz4:988 and lz4:1178 | Yann Collet | 2021-05-28 | 2 | -28/+40 |
| | | | | | ensure `dictBase` is only used when there is an actual dictionary content. | ||||
* | fix NULL ptr arithmetic of lz4:1572 | Yann Collet | 2021-05-28 | 1 | -5/+5 |
| | | | | was blindly adding an offset (0) to `dictionary` which could be `NULL`. | ||||
* | fix UB of lz4frame:907 | Yann Collet | 2021-05-28 | 2 | -59/+66 |
| | | | | | | now line 912 by ensuring pointer arithmetic is only performed if there is a reason for an internal buffer to be used. | ||||
* | Merge pull request #972 from jasperla/memmove_crash | Yann Collet | 2021-04-30 | 1 | -1/+1 |
|\ | | | | | Fix potential memory corruption with negative memmove() size | ||||
| * | Fix potential memory corruption with negative memmove() size | Jasper Lievisse Adriaanse | 2021-02-26 | 1 | -1/+1 |
| | | |||||
* | | fix null pointer dereference | klebertosantos | 2021-03-10 | 1 | -1/+3 |
|/ | |||||
* | Merge pull request #964 from sigiesec/fix-ubsan-resetStreamHC_fast | Yann Collet | 2021-01-19 | 1 | -1/+5 |
|\ | | | | | Don't trigger UBSan warning in LZ4_resetStreamHC_fast if LZ4_streamHC… | ||||
| * | Don't trigger UBSan warning in LZ4_resetStreamHC_fast if ↵ | Simon Giesecke | 2021-01-07 | 1 | -1/+5 |
| | | | | | | | | LZ4_streamHCPtr->internal_donotuse.end is NULL. | ||||
* | | fix some typos (work by Andrea Gelmini) | Thomas Waldmann | 2021-01-07 | 2 | -2/+2 |
|/ | |||||
* | fix minor header date | Yann Collet | 2020-12-01 | 2 | -2/+2 |
| | |||||
* | refactor Makefile | Yann Collet | 2020-12-01 | 1 | -47/+54 |
| | | | | | remove usage of include Makefile.inc in too Makefile as it seems to somehow unexport CFLAGS ... | ||||
* | updated license & header dates | Yann Collet | 2020-11-25 | 9 | -9/+9 |
| | |||||
* | update doc | Yann Collet | 2020-11-15 | 1 | -1/+1 |
| | |||||
* | fix minor win32 warning | Yann Collet | 2020-11-15 | 1 | -1/+2 |
| | |||||
* | better visual conformance | Yann Collet | 2020-11-15 | 1 | -4/+3 |
| | | | | | | only include <intrin.h> on vs2005+ (#947) remove some useless #pragma fix a few minor Visual warnings | ||||
* | Merge branch 'dev' of github.com:Cyan4973/lz4 into dev | Yann Collet | 2020-11-14 | 1 | -2/+3 |
|\ | |||||
| * | minor refactor of lz4io | Yann Collet | 2020-11-13 | 1 | -2/+3 |
| | | | | | | | | | | for readability. Mostly around --list capability | ||||
* | | restrict BitScanForward() to VS2005+ | Yann Collet | 2020-11-14 | 1 | -1/+1 |
|/ | | | | suggested by @aqrit in #947 | ||||
* | minor : lz4frame include stdlib only if needed | Yann Collet | 2020-11-10 | 1 | -1/+1 |
| | |||||
* | changed LZ4_calloc() to a 2-arguments signature | Yann Collet | 2020-11-09 | 1 | -2/+2 |
| | | | | | | to remain similar to stdlib's calloc(). Updated test to use c++ compiler for stricter signature check. |