summaryrefslogtreecommitdiffstats
path: root/lib
Commit message (Collapse)AuthorAgeFilesLines
* fixed bug in optimal parserYann Collet2022-01-291-19/+17
| | | | discovered by @yoniko.
* Add commentsBen Niu2022-01-271-0/+5
|
* Disable _tzcnt_u64 for ARM64ECBen Niu2022-01-271-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 codespellDimitri Papadopoulos2021-11-255-6/+6
|
* Enable fast decoding on Apple/AArch64 buildsArseny Kapoulkine2021-11-221-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 whitespacea13460542021-08-211-1/+1
|
* fix clang-cl _tzcnt_u64 not defined issueZeyi (Rice) Fan2021-08-091-0/+6
|
* Don't reuse state memory that's too small.Eddy Jansson2021-07-311-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_USAGEEddy Jansson2021-07-311-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-dirsYann Collet2021-07-241-2/+2
|\ | | | | Print target directories during 'make install'.
| * Print target directories during 'make install'.Eddy Jansson2021-07-241-2/+2
| | | | | | | | This takes #975 to its logical conclusion.
* | Expand use of pkg-config variables.Eddy Jansson2021-07-242-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 guardTotalJustice2021-06-251-3/+3
|
* Cast ALLOC return value to satisfy C++Gabe Jones2021-06-151-1/+1
|
* fix NULL ptr arithmetic at lz4:2299Yann Collet2021-05-281-2/+7
|
* fix NULL ptr arithmetic in lz4:1680Yann Collet2021-05-281-3/+6
| | | | only do arithmetic if offset > 0
* fix UB lz4:988 and lz4:1178Yann Collet2021-05-282-28/+40
| | | | | ensure `dictBase` is only used when there is an actual dictionary content.
* fix NULL ptr arithmetic of lz4:1572Yann Collet2021-05-281-5/+5
| | | | was blindly adding an offset (0) to `dictionary` which could be `NULL`.
* fix UB of lz4frame:907Yann Collet2021-05-282-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_crashYann Collet2021-04-301-1/+1
|\ | | | | Fix potential memory corruption with negative memmove() size
| * Fix potential memory corruption with negative memmove() sizeJasper Lievisse Adriaanse2021-02-261-1/+1
| |
* | fix null pointer dereferenceklebertosantos2021-03-101-1/+3
|/
* Merge pull request #964 from sigiesec/fix-ubsan-resetStreamHC_fastYann Collet2021-01-191-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 Giesecke2021-01-071-1/+5
| | | | | | | | LZ4_streamHCPtr->internal_donotuse.end is NULL.
* | fix some typos (work by Andrea Gelmini)Thomas Waldmann2021-01-072-2/+2
|/
* fix minor header dateYann Collet2020-12-012-2/+2
|
* refactor MakefileYann Collet2020-12-011-47/+54
| | | | | remove usage of include Makefile.inc in too Makefile as it seems to somehow unexport CFLAGS ...
* updated license & header datesYann Collet2020-11-259-9/+9
|
* update docYann Collet2020-11-151-1/+1
|
* fix minor win32 warningYann Collet2020-11-151-1/+2
|
* better visual conformanceYann Collet2020-11-151-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 devYann Collet2020-11-141-2/+3
|\
| * minor refactor of lz4ioYann Collet2020-11-131-2/+3
| | | | | | | | | | for readability. Mostly around --list capability
* | restrict BitScanForward() to VS2005+Yann Collet2020-11-141-1/+1
|/ | | | suggested by @aqrit in #947
* minor : lz4frame include stdlib only if neededYann Collet2020-11-101-1/+1
|
* changed LZ4_calloc() to a 2-arguments signatureYann Collet2020-11-091-2/+2
| | | | | | to remain similar to stdlib's calloc(). Updated test to use c++ compiler for stricter signature check.
* Merge branch 'dev' into customMemYann Collet2020-11-092-4/+7
|\
| * Merge pull request #944 from lz4/fix874Yann Collet2020-11-091-1/+1
| |\ | | | | | | fix #874
| | * fix #874Yann Collet2020-11-081-1/+1
| | | | | | | | | | | | | | | | | | | | | coverity reported a warning regarding a memcpy() overwrite. This is a false positive (the memory area is large enough), but it's true that it's not trivial to determine (encompassing struct), and it's proper anyway to only memcpy() just the right amount of data.
| * | Merge pull request #945 from lz4/fix926Yann Collet2020-11-092-3/+6
| |\ \ | | |/ | |/| fixed remaining ubsan warnings
| | * fixed remaining ubsan warningsYann Collet2020-11-092-3/+6
| | |
* | | first proposal for LZ4_USER_MEMORY_FUNCTIONSYann Collet2020-11-093-12/+28
|/ / | | | | | | | | | | | | | | | | makes it possible to replace at link time malloc, calloc and free by user-provided functions which must be named LZ4_malloc(), LZ4_calloc() and LZ4_free(). answer #937
* | update obsolete section documentationYann Collet2020-11-081-12/+11
|/ | | | | and update manuals. fix #712
* fix minor UBsYann Collet2020-11-082-3/+5
| | | | | - check alignment before casting a pointer - saveDict : don't memmove() on NULL dst
* fix #926Yann Collet2020-11-081-18/+20
| | | | | fix incorrect behavior of LZ4_saveDictHC() when invoked right after initialization.
* Merge pull request #941 from lz4/revertinlineYann Collet2020-11-082-20/+20
|\ | | | | Revert "Replace "static" to "LZ4_FORCE_INLINE" for small functions"
| * Revert "Replace "static" to "LZ4_FORCE_INLINE" for small functions"Yann Collet2020-11-072-20/+20
| | | | | | | | This reverts commit 0e3933edd435c54cc2e21e38f5d4ba7bf644a24e.
* | fix #935Yann Collet2020-11-072-3/+4
|/ | | | | | | minor: identical declaration and prototypes of `LZ4HC_compress_optimal()` also : very minor optimization of `LZ4_memcpy_using_offset()`
* LZ4F_decompress requires a valid dctx stateYann Collet2020-11-073-7/+10
| | | | | This is now explicitly documented and asserted. fix #927
* Merge pull request #936 from lz4/alignTestYann Collet2020-11-075-108/+77
|\ | | | | More alignment tests