Commit Graph

2868 Commits

Author SHA1 Message Date
Ben Niu
c2d00cb97b
Add comments 2022-01-27 11:04:06 -08:00
Ben Niu
bee421b93d
Disable _tzcnt_u64 for ARM64EC
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.
2022-01-26 18:02:31 -08:00
Léon
02d04663cb Fix CMake targets include direrctories 2022-01-19 15:15:00 +01:00
Eli Schwartz
e7e5dd883a
meson: simplify version lookup and avoid deprecation warnings
run_command() in development versions of meson will warn when the
`check: ` kwarg is not specified. At the same time, lz4 has some gnarly
code to manually check the return code and raise an error if it failed.

Kill two birds with one stone, by making run_command inherently raise a
fatal error when erroring out, then proceeding in the knowledge that it
must have succeeded.
2021-12-14 18:21:09 -05:00
WHR
540b52ea7b Allow '--list' with stdin if it is a regular file 2021-12-14 19:41:09 +08:00
Yann Collet
4c9431e9af
Merge pull request #1042 from DimitriPapadopoulos/codespell
Fix typos found by codespell
2021-11-25 09:07:44 -08:00
Dimitri Papadopoulos
4bdfb08b95
Fix typos found by codespell 2021-11-25 15:32:37 +01:00
Yann Collet
db57809cf1
Merge pull request #1040 from zeux/m1-fastdec
Enable fast decoding on Apple/AArch64 builds (18-25% faster decompression)
2021-11-22 16:48:53 -08:00
Arseny Kapoulkine
22e232dada Enable fast decoding on Apple/AArch64 builds
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.
2021-11-22 11:23:41 -08:00
Yann Collet
8f61d8eb7c
Merge pull request #1032 from fwessels/patch-1
Update lz4_Block_format.md
2021-10-24 20:46:34 -07:00
Frank Wessels
775758cbb1
Update lz4_Block_format.md
Mini typo
2021-10-24 20:15:39 -07:00
Yann Collet
0e2743cead
Merge pull request #1030 from kostasdizas/cmake
Create CMake package when installing
2021-10-20 17:41:56 -07:00
Kostas Dizas
f9378137ed
Create cmake package when installing 2021-10-20 13:17:00 +01:00
Yann Collet
e2009622dd
Merge pull request #1022 from lz4/uname
make UNAME externally definable
2021-09-20 16:04:07 -07:00
Yann Collet
976170316e
Merge pull request #1027 from t-mat/examples-test-cpp
Add C++ compatibility test for `examples/`
2021-09-06 10:56:04 -07:00
Takayuki Matsuoka
d93bc67c46 Remove invalid variable 2021-09-07 01:07:06 +09:00
Takayuki Matsuoka
099d9a28a0 Add test for examples/ 2021-09-07 01:03:47 +09:00
Takayuki Matsuoka
2fbf12add7 Add C++ compatibility test for examples/ 2021-09-07 01:03:04 +09:00
Takayuki Matsuoka
1b0a501a19 Add cast operator for compatibility with C++ 2021-09-07 01:02:23 +09:00
Yann Collet
d2334731c3
Merge pull request #1026 from kmou424/dev
examples: simple_buffer: We must explicit convert pointer after mallo…
2021-09-04 13:31:06 -07:00
kmou424
a3960899f4 examples: simple_buffer: We must explicit convert pointer after malloc in c++
Aim: To adapt C++

Compilation errors:
simple_buffer.c:47:9: error: cannot initialize a variable of type 'char *' with an rvalue of type 'void *'
  char* compressed_data = malloc((size_t)max_dst_size);
        ^                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
simple_buffer.c:76:15: error: cannot initialize a variable of type 'char *const' with an rvalue of type 'void *'
  char* const regen_buffer = malloc(src_size);
              ^              ~~~~~~~~~~~~~~~~
2 errors generated.
2021-09-05 02:52:57 +08:00
Yann Collet
1600ce5c0b
Merge pull request #1024 from a1346054/dev
Minor cleanup
2021-08-21 20:22:34 -07:00
a1346054
3e99d07bc0 trim excess whitespace 2021-08-21 22:24:52 +00:00
a1346054
eb23590d13 fix spelling 2021-08-21 20:50:38 +00:00
a1346054
6a8e21d802 fix warnings reported by shellcheck in shell scripts 2021-08-21 20:46:23 +00:00
a1346054
d68bfbde54 use the same style of hashbang for all files 2021-08-21 20:45:30 +00:00
a1346054
8df946943d fix broken hashbangs 2021-08-21 20:38:29 +00:00
Yann Collet
596c747211 make UNAME externally definable
on top of providing a central definition place, which eases maintenance,
it might also help for #1021.

Also : updated doc
2021-08-16 16:43:17 -07:00
Yann Collet
e78eeec86e
Merge pull request #1017 from fanzeyi/fix-clang-cl-msvc
fix clang-cl _tzcnt_u64 not defined issue
2021-08-09 12:58:58 -07:00
Zeyi (Rice) Fan
1a2e8f4e30 fix clang-cl _tzcnt_u64 not defined issue 2021-08-09 11:30:02 -07:00
Yann Collet
57ed27f46e minor documentation for unicode_lint 2021-08-09 05:33:20 -07:00
Yann Collet
1a6e81310e
Merge pull request #1020 from servusdei2018/dev
ci: merge unicode lint to github actions and expand test coverage to ./tests/ directory
2021-08-09 05:29:20 -07:00
Nate
b13108a5b6
ci: sh -> bash 2021-08-08 19:11:44 -04:00
Nate
9a511781d6
ci: pass script through sh 2021-08-08 16:23:00 -04:00
Nate
56ef1696fd
ci(.github/workflows/ci.yml): fix invalid yaml
fixed syntax error
2021-08-08 15:32:05 -04:00
Nate
28eff0c77e
ci(.github/workflows/ci.yml): run unicode lint under github actions 2021-08-08 15:16:31 -04:00
Nate
424e1d9622
tests(tests/unicode_lint.sh): expand unicode lint to the ./tests/ directory 2021-08-08 15:10:58 -04:00
Yann Collet
eb70459803
Merge pull request #1019 from servusdei2018/patch-1
nit(programs/platform.h): replace Unicode character #1018
2021-08-08 02:50:55 -07:00
Nate
e2561f20e6
ci(.travis.yml): add unicode lint job 2021-08-08 00:38:33 -04:00
Nate
7b4692596e
nit(tests/unicode_lint.sh): standardize failure format message 2021-08-08 00:36:06 -04:00
Nate
594ec829e3
tests(unicode_lint.sh): create: lint source files in ./lib/ and ./programs/ for Unicode 2021-08-08 00:34:07 -04:00
Nate
0c78292335
nit(programs/platform.h): replace Unicode character #1018
On line 83, U+2013 was replaced with U+002D in order to improve compatibility with MSVC 2019 and older compilers.
2021-08-07 06:32:31 -04:00
Yann Collet
de45d6e0fa minor doc clarification 2021-08-06 14:51:09 -07:00
Yann Collet
d1d3266bc5 fixed minor type, reported by @mwgamera 2021-08-06 14:45:42 -07:00
Yann Collet
aeac6227d2
Merge pull request #999 from pekdon/solaris-10
add -lrt on Solaris 10, required for nanosleep
2021-08-06 19:10:00 +02:00
Yann Collet
163db1675c
Merge pull request #1013 from eloj/relax-lz4-memory-usage-tunable
Define LZ4_STREAMSIZE in terms of LZ4_MEMORY_USAGE.
2021-08-02 17:03:38 +02:00
Yann Collet
27fd77e6cd
Merge pull request #1014 from eloj/github-ubuntu-16.04-deprecation
GitHub Ubuntu 16.04 deprecation
2021-08-02 16:21:02 +02:00
Eddy Jansson
b3fda2d21e All compilers now support stdc11.
With the removal of Ubuntu 16.04, all compilers in
in the matrix supports c11, so remove this column
from the matrix, and unconditionally test this.
2021-07-31 21:19:10 +02:00
Eddy Jansson
05245113c7 All compilers now support stdc90.
With the removal of Ubuntu 16.04, all compilers in
in the matrix supports c90, so remove this column
from the matrix, and unconditionally test this.
2021-07-31 21:07:40 +02:00
Eddy Jansson
6f54156783 Remove ubuntu-16.04 as a test platform.
The Ubuntu 16.04 environment is being removed by github
on September 20, 2021. They will induce 'brownouts'
starting from September 6 to get clients to move on.

This change removes testing of GCC versions prior to 4.8,
and clang versions prior to 3.9

Ref: https://github.com/actions/virtual-environments/issues/3287
2021-07-31 20:59:23 +02:00