]> git.ipfire.org Git - thirdparty/zlib-ng.git/log
thirdparty/zlib-ng.git
19 months agoRemove unused Z_TLS and HAVE_THREAD_LOCAL
Vladislav Shchapov [Thu, 21 Dec 2023 16:19:34 +0000 (21:19 +0500)] 
Remove unused Z_TLS and HAVE_THREAD_LOCAL

Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
19 months agoAtomic functable
Vladislav Shchapov [Thu, 21 Dec 2023 16:19:05 +0000 (21:19 +0500)] 
Atomic functable

Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
19 months agoMake sure uqsub16 mnemonic doesn't get optimized away.
Mika Lindqvist [Fri, 22 Dec 2023 11:24:54 +0000 (13:24 +0200)] 
Make sure uqsub16 mnemonic doesn't get optimized away.

19 months agoAdd support for __attribute__((__target__(...))) to overcome limitations of -march...
Mika Lindqvist [Fri, 22 Dec 2023 14:59:03 +0000 (16:59 +0200)] 
Add support for __attribute__((__target__(...))) to overcome limitations of -march=native.

19 months agoAlways run CMake tests without LTO.
Hans Kristian Rosbach [Sat, 23 Dec 2023 18:00:46 +0000 (19:00 +0100)] 
Always run CMake tests without LTO.

19 months agoCheck if compiler supports -march=native or -mcpu=native.
Mika Lindqvist [Thu, 21 Dec 2023 08:19:54 +0000 (10:19 +0200)] 
Check if compiler supports -march=native or -mcpu=native.

19 months agoImprove performance of crc32_acle on 32-bit ARM
Cameron Cawley [Wed, 11 Jan 2023 14:52:15 +0000 (14:52 +0000)] 
Improve performance of crc32_acle on 32-bit ARM

19 months agoInitialize functable earlier, during inflateInit
Vladislav Shchapov [Sun, 17 Dec 2023 12:14:17 +0000 (17:14 +0500)] 
Initialize functable earlier, during inflateInit

Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
19 months agoAdd force initialization functable, because deflate captures function pointers from...
Vladislav Shchapov [Sat, 16 Dec 2023 13:00:45 +0000 (18:00 +0500)] 
Add force initialization functable, because deflate captures function pointers from functable

Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
19 months agoFix buffer overflow in compare256_rle benchmark
Vladislav Shchapov [Sat, 16 Dec 2023 09:10:11 +0000 (14:10 +0500)] 
Fix buffer overflow in compare256_rle benchmark

Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
19 months agoOnly read version information from zlib.h.in
Letu Ren [Sun, 17 Dec 2023 16:58:38 +0000 (00:58 +0800)] 
Only read version information from zlib.h.in

This is a patch for https://github.com/zlib-ng/zlib-ng/commit/cd458c79c7923e76ffdd0e2638bf2a0eed4f3996
As the commit message says: "Add code to extract version information
for both ZLIB and ZLIBNG variants from the zlib.h file."

The logic of ${SUFFIX} is that zlib-ng reads version information after
parse ZLIB_COMPAT before the commit mentioned above. ${SUFFIX} will only
be set by ZLIB_COMPAT and is meaningless before ZLIB_COMPAT.

19 months agoUpdate copyright to sync with zlib 1.3
Letu Ren [Mon, 18 Dec 2023 13:53:21 +0000 (21:53 +0800)] 
Update copyright to sync with zlib 1.3

https://github.com/zlib-ng/zlib-ng/pull/1563 this patch forgets to
update copyright string.

19 months agoRemove duplicate enable tests option
Letu Ren [Thu, 14 Dec 2023 07:27:08 +0000 (15:27 +0800)] 
Remove duplicate enable tests option

There are two identical ZLIB_ENABLE_TESTS option in CMakeLists.txt which
means the latter one is meaningless. This issue is introduced in
https://github.com/zlib-ng/zlib-ng/commit/ce1a64b5147b874a2dd32920765be333f54e7095
which adds the option to top but forgets to remove the original one.

19 months agoFix pkgcheck mismatch with configure due to cmake target files.
Mika Lindqvist [Fri, 15 Dec 2023 13:23:52 +0000 (14:23 +0100)] 
Fix pkgcheck mismatch with configure due to cmake target files.

19 months agoExport cmake target (#1601)
Uilian Ries [Fri, 15 Dec 2023 13:25:30 +0000 (14:25 +0100)] 
Export cmake target (#1601)

* Export cmake target
* Mimic zlib target name

---------

Signed-off-by: Uilian Ries <uilianries@gmail.com>
20 months agoDetemplatize adler32_fold_copy for avx512
Adam Stylinski [Tue, 7 Nov 2023 20:22:55 +0000 (15:22 -0500)] 
Detemplatize adler32_fold_copy for avx512

Measurements show deltas basically in the noise floor for the
benchmarks.

The AVX512 VNNI implementation is a bit special in that it seems to be
be hurt by the clock penalty enough versus a normal copy that a 256 bit
wide variant was warranted.

20 months agoSimplify AVX2 adler32_fold_copy by removing templates
Adam Stylinski [Tue, 7 Nov 2023 19:54:18 +0000 (14:54 -0500)] 
Simplify AVX2 adler32_fold_copy by removing templates

20 months agoPrevent tests writing into the source directory.
Vladislav Shchapov [Sun, 26 Nov 2023 19:13:49 +0000 (00:13 +0500)] 
Prevent tests writing into the source directory.

Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
20 months agoRun OSB tests with readonly source directory.
Vladislav Shchapov [Sun, 26 Nov 2023 17:48:31 +0000 (22:48 +0500)] 
Run OSB tests with readonly source directory.

Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
20 months agoAdd adler32_fold_copy_rvv implementation.
Simon Hosie [Mon, 6 Nov 2023 23:39:34 +0000 (15:39 -0800)] 
Add adler32_fold_copy_rvv implementation.

20 months agoFix clang-cl warnings
Yoshiki Matsuda [Mon, 23 Oct 2023 09:33:16 +0000 (18:33 +0900)] 
Fix clang-cl warnings

20 months ago2.1.5 Release 2.1.5
Hans Kristian Rosbach [Sun, 26 Nov 2023 19:56:58 +0000 (20:56 +0100)] 
2.1.5 Release

20 months agoFix an issue with regard to finishing out the window
Adam Stylinski [Fri, 17 Nov 2023 23:26:45 +0000 (18:26 -0500)] 
Fix an issue with regard to finishing out the window

if inflate is invoked with Z_FINISH, and it deems a window was not
necessary, there's a corner case where we never checksum the bytes.
Detect this by checking the window size against zero and the value
of the flush parameter.

This should fix issue #1600, and possibly #1565 as well.

20 months agoAdded unit test for inflate with Z_FINISH and no window.
Nathan Moinvaziri [Wed, 22 Nov 2023 06:30:45 +0000 (22:30 -0800)] 
Added unit test for inflate with Z_FINISH and no window.

This test decompresses a small git pack object with the text:
"alone in the dark". By providing inflate with Z_FINISH, it should not use a
sliding window according to zlib docs. We purposefully limit the read buffer
size to trigger CHECK mode to bail early.

21 months ago[configure] Propagate -DWITH_GZFILEOP to pkgconfig.
Mika T. Lindqvist [Tue, 7 Nov 2023 17:06:21 +0000 (19:06 +0200)] 
[configure] Propagate -DWITH_GZFILEOP to pkgconfig.

21 months agopkgconfig file: propagate WITH_GZFILEOP
Leander Schulten [Fri, 3 Nov 2023 22:31:11 +0000 (23:31 +0100)] 
pkgconfig file: propagate WITH_GZFILEOP

21 months agofix cmake header path in install with custom CMAKE_INSTALL_INCLUDEDIR
Benjamin Buch [Mon, 30 Oct 2023 18:18:30 +0000 (19:18 +0100)] 
fix cmake header path in install with custom CMAKE_INSTALL_INCLUDEDIR

21 months ago[README] configure no longer supports --native
Mika Lindqvist [Mon, 30 Oct 2023 19:49:18 +0000 (21:49 +0200)] 
[README] configure no longer supports --native

21 months agoFix status badges
Hans Kristian Rosbach [Fri, 20 Oct 2023 20:31:43 +0000 (22:31 +0200)] 
Fix status badges

21 months agoUpdate to actions/checkout@v4, and disable checkout progress logging.
Hans Kristian Rosbach [Fri, 20 Oct 2023 20:30:32 +0000 (22:30 +0200)] 
Update to actions/checkout@v4, and disable checkout progress logging.

21 months ago2.1.4 Release 2.1.4
Hans Kristian Rosbach [Fri, 13 Oct 2023 10:57:37 +0000 (12:57 +0200)] 
2.1.4 Release

21 months agoFix building benchmarks on 32-bit PowerPC.
Mika Lindqvist [Sun, 15 Oct 2023 19:10:46 +0000 (22:10 +0300)] 
Fix building benchmarks on 32-bit PowerPC.

21 months agoFix cross-compiling benchmarks and libpng.
Mika T. Lindqvist [Mon, 16 Oct 2023 20:46:26 +0000 (23:46 +0300)] 
Fix cross-compiling benchmarks and libpng.

22 months agoSupport RVV hwcap detect at runtime
Xeonacid [Sun, 8 Oct 2023 03:30:54 +0000 (11:30 +0800)] 
Support RVV hwcap detect at runtime

Fallback to compile-time detect if kernel version lower than 6.5.

Co-authored-by: Hans Kristian Rosbach <hk-git@circlestorm.org>
Signed-off-by: Xeonacid <h.dwwwwww@gmail.com>
22 months agoMake sure inflateCopy() allocates window with the necessary buffer for chunked operat...
Hans Kristian Rosbach [Mon, 25 Sep 2023 13:23:41 +0000 (15:23 +0200)] 
Make sure inflateCopy() allocates window with the necessary buffer for chunked operations.

Based on Chromium bugfix https://chromium-review.googlesource.com/c/chromium/src/+/4876445

22 months agoDeprecate ZLIBNG_VER_STATUS, add new variant ZLIBNG_VER_STATUSH
Hans Kristian Rosbach [Thu, 21 Sep 2023 10:45:13 +0000 (12:45 +0200)] 
Deprecate ZLIBNG_VER_STATUS, add new variant ZLIBNG_VER_STATUSH

22 months agoDetect -Wno-pedantic-ms-format support in mingw
Hajin Jang [Mon, 25 Sep 2023 17:15:10 +0000 (02:15 +0900)] 
Detect -Wno-pedantic-ms-format support in mingw

Use check_c_compiler_flag() feature of CMake to figure out whether this
mingw toolchain has support for -Wno-pedantic-ms-format or not.
This flag will be added only if the toolchain supports it.
Currently, MinGW-w64 GCC has it, and llvm-mingw does not have it.

22 months agoAdd llvm-mingw CMake toolchain files
Hajin Jang [Sun, 24 Sep 2023 04:07:22 +0000 (13:07 +0900)] 
Add llvm-mingw CMake toolchain files

22 months agoSupport llvm-mingw toolchain
Hajin Jang [Sun, 10 Sep 2023 09:28:28 +0000 (18:28 +0900)] 
Support llvm-mingw toolchain

zlib-ng requires some patches to make it compilable on LLVM-mingw.
1. Add -Wno-pedantic-ms-format only if a toolchain is MinGW GCC.
- llvm-mingw does not support it, causing build to break.
2. Include arm_neon.h instead of arm64_neon.h (aarch64 only).
- arm64_neon.h is MSVC only.
- GCC, Clang does not have arm64_neon.h but arm_neon.h on aarch64.
- Also applied to configure and detect-instrinsics.cmake

22 months agoUse large data type for chunk
alexsifivetw [Sun, 24 Sep 2023 09:53:55 +0000 (02:53 -0700)] 
Use large data type for chunk
Implement chunk memset for specific length

22 months agoGeneral optimized chunkset
alexsifivetw [Thu, 31 Aug 2023 08:22:20 +0000 (01:22 -0700)] 
General optimized chunkset

22 months agoAdded instructions for cpack to readme.
Nathan Moinvaziri [Mon, 18 Sep 2023 00:11:48 +0000 (17:11 -0700)] 
Added instructions for cpack to readme.

22 months agoDon't run test intrinsic code with native flag in CMake.
Nathan Moinvaziri [Sun, 17 Sep 2023 22:25:41 +0000 (15:25 -0700)] 
Don't run test intrinsic code with native flag in CMake.

Native flag should already determine what code will run on the architecture.
This appears to have just been an extra run check with limited benefits. Any
compiler that compiles code not available on the native platform is buggy and
not our problem.

22 months agoMatch CMAKE_GENERATOR_TOOLSET variable case-insensitive
Deniz Bahadir [Fri, 15 Sep 2023 16:23:27 +0000 (18:23 +0200)] 
Match CMAKE_GENERATOR_TOOLSET variable case-insensitive

The Visual Studio CMake generator allows to select different toolsets.
One of these toolsets is Clang-Cl.

However, the generator does accept the toolset name case-agnostic, so it
could be "ClangCl", but also "Clangcl" or "clangcl" or ...
This value will be stored verbatim in variable CMAKE_GENERATOR_TOOLSET
by CMake. Therefore, this variable must be matched case-insensitive,
which is what this commit does.

fixes: #1576

Signed-off-by: Deniz Bahadir <deniz@code.bahadir.email>
22 months agoFix examining value of GENERATOR_IS_MULTI_CONFIG
Deniz Bahadir [Fri, 15 Sep 2023 13:46:56 +0000 (15:46 +0200)] 
Fix examining value of GENERATOR_IS_MULTI_CONFIG

CMake does not define a variable GENERATOR_IS_MULTI_CONFIG by default.
Instead it sets a global property of that name.
In order to examine its value it first has to be retrieved and stored
into a (local) variable, which is what this commit does.

fixes: #1574

Signed-off-by: Deniz Bahadir <deniz@code.bahadir.email>
22 months agoAdd ARMv6 version of slide_hash
Cameron Cawley [Wed, 12 Jul 2023 17:48:48 +0000 (18:48 +0100)] 
Add ARMv6 version of slide_hash

22 months agoAlways include strings.h when strcasecmp is used
Cameron Cawley [Fri, 19 May 2023 14:17:41 +0000 (15:17 +0100)] 
Always include strings.h when strcasecmp is used

22 months agoUse GCC cpuid intrinsics with MinGW
Cameron Cawley [Fri, 19 May 2023 14:16:24 +0000 (15:16 +0100)] 
Use GCC cpuid intrinsics with MinGW

23 months agoMerge 32-bit arm hardware flag detection sections in configure and cmake
Nathan Moinvaziri [Wed, 30 Aug 2023 14:29:46 +0000 (07:29 -0700)] 
Merge 32-bit arm hardware flag detection sections in configure and cmake

23 months agoUse consistent NEON_AVAILABLE variable across CMake/configure.
Nathan Moinvaziri [Tue, 29 Aug 2023 08:27:44 +0000 (01:27 -0700)] 
Use consistent NEON_AVAILABLE variable across CMake/configure.

23 months agoMerge both without_optimizations sections in configure for arm.
Nathan Moinvaziri [Tue, 29 Aug 2023 08:25:44 +0000 (01:25 -0700)] 
Merge both without_optimizations sections in configure for arm.

23 months agoClean up detection on ARM variants and allow ACLE on all ARM archs.
Nathan Moinvaziri [Fri, 8 Sep 2023 17:05:43 +0000 (10:05 -0700)] 
Clean up detection on ARM variants and allow ACLE on all ARM archs.

23 months agoAllow ACLE to be enabled on all ARM architecture versions
Cameron Cawley [Tue, 29 Aug 2023 02:48:56 +0000 (19:48 -0700)] 
Allow ACLE to be enabled on all ARM architecture versions

23 months agocast _xgetbv to int to silence conversion warning
Harmen Stoppels [Tue, 29 Aug 2023 12:31:12 +0000 (14:31 +0200)] 
cast _xgetbv to int to silence conversion warning

23 months agoDo the same for detect-intrinsics.cmake
Harmen Stoppels [Mon, 21 Aug 2023 11:14:32 +0000 (13:14 +0200)] 
Do the same for detect-intrinsics.cmake

23 months agoanother
Harmen Stoppels [Mon, 21 Aug 2023 09:27:01 +0000 (11:27 +0200)] 
another

23 months agoconfigure: ensure instructions are not optimized out before assembler is run
Harmen Stoppels [Mon, 21 Aug 2023 09:10:29 +0000 (11:10 +0200)] 
configure: ensure instructions are not optimized out before assembler is run

23 months ago$@ over $*
Harmen Stoppels [Mon, 21 Aug 2023 10:27:35 +0000 (12:27 +0200)] 
$@ over $*

23 months agoalso fix SC2288
Harmen Stoppels [Mon, 21 Aug 2023 10:19:36 +0000 (12:19 +0200)] 
also fix SC2288

23 months agouse dash not bash for portability
Harmen Stoppels [Mon, 21 Aug 2023 08:13:10 +0000 (10:13 +0200)] 
use dash not bash for portability

23 months agoUpdated zlib compat version to 1.3.
Nathan Moinvaziri [Wed, 23 Aug 2023 03:37:16 +0000 (20:37 -0700)] 
Updated zlib compat version to 1.3.

23 months agoClarify requirement in zlib.h to avoid multiple flush markers.
Mark Adler [Mon, 21 Aug 2023 20:50:29 +0000 (13:50 -0700)] 
Clarify requirement in zlib.h to avoid multiple flush markers.

23 months agoFix bug when using gzflush() with a very small buffer.
Mark Adler [Mon, 21 Aug 2023 20:49:50 +0000 (13:49 -0700)] 
Fix bug when using gzflush() with a very small buffer.

23 months agoFix bug when gzungetc() is used immediately after gzopen().
Mark Adler [Mon, 21 Aug 2023 20:48:56 +0000 (13:48 -0700)] 
Fix bug when gzungetc() is used immediately after gzopen().

23 months agoAvoid compiler complaints if _TIME_BITS defined when building zlib.
Mark Adler [Mon, 21 Aug 2023 20:47:27 +0000 (13:47 -0700)] 
Avoid compiler complaints if _TIME_BITS defined when building zlib.

zlib does not use time_t, so _TIME_BITS is irrelevant. However it
may be defined anyway as part of a sledgehammer indiscriminately
applied to all builds.

23 months agoDocument in zlib.h the initialization of stream fields by the Init
Mark Adler [Mon, 21 Aug 2023 20:45:31 +0000 (13:45 -0700)] 
Document in zlib.h the initialization of stream fields by the Init
and Reset functions.

23 months agoCorrect comment in zlib.h on os setting in gzip header.
Mark Adler [Mon, 21 Aug 2023 20:43:46 +0000 (13:43 -0700)] 
Correct comment in zlib.h on os setting in gzip header.

The comment said that the os is set to 255, when in fact it has
been set to the current os since zlib 1.2.3. Or at least our best
guess at the os made at compile time.

23 months agoRemove duplicate "the" in zlib.h.
Paul Marquess [Mon, 21 Aug 2023 20:41:24 +0000 (13:41 -0700)] 
Remove duplicate "the" in zlib.h.

23 months agoAdd CPack capability
Hans Kristian Rosbach [Mon, 14 Aug 2023 12:12:55 +0000 (14:12 +0200)] 
Add CPack capability

23 months agoSimplify handling of march=native in CMakeLits.txt
Hans Kristian Rosbach [Thu, 20 Jul 2023 17:26:06 +0000 (19:26 +0200)] 
Simplify handling of march=native in CMakeLits.txt

23 months agoRemove partially broken march=native support from Configure.
Hans Kristian Rosbach [Sat, 12 Aug 2023 14:23:12 +0000 (16:23 +0200)] 
Remove partially broken march=native support from Configure.
Remove pkgcheck comparison of march=native builds between CMake and Configure.

2 years agoClean up extra whitespaces at line endings in check_rvv_intrinsics.
Nathan Moinvaziri [Wed, 9 Aug 2023 00:06:39 +0000 (17:06 -0700)] 
Clean up extra whitespaces at line endings in check_rvv_intrinsics.

2 years agoRemove inert check for HAVE_ACLE_FLAG in check_acle_compiler_flag.
Nathan Moinvaziri [Wed, 9 Aug 2023 00:06:18 +0000 (17:06 -0700)] 
Remove inert check for HAVE_ACLE_FLAG in check_acle_compiler_flag.

2 years agoDiscard repeated words
Dimitri Papadopoulos [Sun, 6 Aug 2023 11:27:51 +0000 (13:27 +0200)] 
Discard repeated words

2 years agoDiscard trailing whitespaces
Dimitri Papadopoulos [Sun, 6 Aug 2023 11:19:10 +0000 (13:19 +0200)] 
Discard trailing whitespaces

2 years agoAvoid unnecessary line continuations
Dimitri Papadopoulos [Sun, 6 Aug 2023 11:11:03 +0000 (13:11 +0200)] 
Avoid unnecessary line continuations

2 years agoFix typos found by codespell
Dimitri Papadopoulos [Sun, 6 Aug 2023 10:55:29 +0000 (12:55 +0200)] 
Fix typos found by codespell

2 years agoSimplify deflate stream/state check.
Nathan Moinvaziri [Mon, 29 May 2023 19:43:58 +0000 (12:43 -0700)] 
Simplify deflate stream/state check.

2 years agoRemove relative configure --lib
Harmen Stoppels [Mon, 24 Jul 2023 08:20:32 +0000 (10:20 +0200)] 
Remove relative configure --lib

2 years agorelocatable pc files by default, while allowing discouraged absolute paths for CMAKE_...
Harmen Stoppels [Mon, 24 Jul 2023 09:37:31 +0000 (11:37 +0200)] 
relocatable pc files by default, while allowing discouraged absolute paths for CMAKE_INSTALL_[LIB|INCLUDE]DIR

2 years agoRelative paths CMAKE_INSTALL_*, absolute paths CMAKE_INSTALL_FULL_*; use @rpath/libna...
Harmen Stoppels [Mon, 24 Jul 2023 07:37:57 +0000 (09:37 +0200)] 
Relative paths CMAKE_INSTALL_*, absolute paths CMAKE_INSTALL_FULL_*; use @rpath/libname as install name on macOS

2 years agoMove check_c_source_compile_or_run cmake macro to the only place it is used.
Hans Kristian Rosbach [Thu, 20 Jul 2023 17:43:08 +0000 (19:43 +0200)] 
Move check_c_source_compile_or_run cmake macro to the only place it is used.

2 years agoClean up SSE4.2 support, and no longer use asm fallback or gcc builtin.
Hans Kristian Rosbach [Fri, 21 Jul 2023 11:43:15 +0000 (13:43 +0200)] 
Clean up SSE4.2 support, and no longer use asm fallback or gcc builtin.

Defines changing meaning:
X86_SSE42 used to mean the compiler supports crc asm fallback.
X86_SSE42_CRC_INTRIN used to mean compiler supports SSE4.2 intrinsics.

X86_SSE42 now means compiler supports SSE4.2 intrinsics.

This therefore also fixes the adler32_sse42 checks, since those were depending
on SSE4.2 intrinsics but was mistakenly checking the X86_SSE42 define.
Now the X86_SSE42 define actually means what it appears to.

2 years agoFix typo found by codespell
Dimitri Papadopoulos [Sat, 29 Jul 2023 10:54:18 +0000 (12:54 +0200)] 
Fix typo found by codespell

2 years agoExpand support for symbol versioning to also allow multiple functions
Hans Kristian Rosbach [Thu, 29 Dec 2022 12:45:50 +0000 (13:45 +0100)] 
Expand support for symbol versioning to also allow multiple functions
with the same name to exist with bindings to different versions.

2 years agoConfigure: Make it possible to disable deflate_quick and deflate_medium
Hans Kristian Rosbach [Fri, 21 Jul 2023 17:32:19 +0000 (19:32 +0200)] 
Configure: Make it possible to disable deflate_quick and deflate_medium
also on non-x86 architectures.

2 years agoMove the AVX compatibility functions into a separate file
Cameron Cawley [Tue, 18 Jul 2023 10:17:03 +0000 (11:17 +0100)] 
Move the AVX compatibility functions into a separate file

2 years agoDo mod BASE once each block of NMAX size
alexsifivetw [Tue, 11 Jul 2023 12:47:29 +0000 (05:47 -0700)] 
Do mod BASE once each block of NMAX size

2 years agoOptimize adler32 using rvv
alexsifivetw [Sat, 1 Jul 2023 17:40:06 +0000 (10:40 -0700)] 
Optimize adler32 using rvv

2 years agoHandle ARM64EC as ARM64.
David Korth [Sat, 15 Jul 2023 14:13:20 +0000 (10:13 -0400)] 
Handle ARM64EC as ARM64.

ARM64EC is a new ARM64 variant introduced in Windows 11 that uses an
ABI similar to AMD64, which allows for better interoperability with
emulated AMD64 applications. When enabled in MSVC, it defines _M_AMD64
and _M_ARM64EC, but not _M_ARM64, so we need to check for _M_ARM64EC.

2 years agoInitial loongarch port
Leslie Zhai [Thu, 13 Jul 2023 11:39:22 +0000 (19:39 +0800)] 
Initial loongarch port

2 years agoDefine an empty __msan_unpoison() without Z_MEMORY_SANITIZER
Ilya Leoshkevich [Thu, 6 Jul 2023 11:49:58 +0000 (13:49 +0200)] 
Define an empty __msan_unpoison() without Z_MEMORY_SANITIZER

Currently all the usages of __msan_unpoison() have to be guarded by
"#ifdef Z_MEMORY_SANITIZER". Simplify things by defining an empty
__msan_unpoison() when the code is compiled without MSan.

2 years agoFix distclean target in Makefile.in
Mika Lindqvist [Sat, 1 Jul 2023 11:52:22 +0000 (14:52 +0300)] 
Fix distclean target in Makefile.in

2 years ago2.1.3 Release 2.1.3
Hans Kristian Rosbach [Wed, 28 Jun 2023 15:49:17 +0000 (17:49 +0200)] 
2.1.3 Release

2 years agoAllow re-enabling @rpath on OS/X when using relative install prefix
Mika Lindqvist [Fri, 23 Jun 2023 01:32:58 +0000 (04:32 +0300)] 
Allow re-enabling @rpath on OS/X when using relative install prefix

2 years ago[ARM] Check that we have features.h before detecting float-abi
Mika Lindqvist [Tue, 27 Jun 2023 15:52:12 +0000 (18:52 +0300)] 
[ARM] Check that we have features.h before detecting float-abi
* MacOS/arm64 is known to not have features.h

2 years agoHandle complete overlap in chunkcopy_safe
Fabian Vogt [Tue, 27 Jun 2023 07:47:04 +0000 (09:47 +0200)] 
Handle complete overlap in chunkcopy_safe

Fixes #1525

2 years agoOptimize slide_hash using RVV
alexsifivetw [Mon, 19 Jun 2023 10:05:11 +0000 (03:05 -0700)] 
Optimize slide_hash using RVV

2 years agoUpdate detect-arch.cmake
Andrea Campanella [Fri, 16 Jun 2023 11:50:28 +0000 (12:50 +0100)] 
Update detect-arch.cmake

Add Cortex plaform for ARM

2 years agoUse endianess-specific built-in function for gcc < 12 on PowerPC64
Mika T. Lindqvist [Sun, 11 Jun 2023 22:18:12 +0000 (01:18 +0300)] 
Use endianess-specific built-in function for gcc < 12 on PowerPC64
* Add support for cross-compiling using clang 13 and later for PowerPC64 little-endian and big-endian
* Fix detection for availability of Power9 intrinsics