diff options
| author | Ilya Leoshkevich <iii@linux.ibm.com> | 2025-09-10 11:28:03 +0200 |
|---|---|---|
| committer | Mark Adler <git@madler.net> | 2026-01-27 20:22:17 -0800 |
| commit | 07f2d4237eade624182b1cf11f1f516985aed620 (patch) | |
| tree | fad27d61fc7e05c8bc08662fd1caa4fb2bea928e /CMakeLists.txt | |
| parent | 3382ba45561ea82a1d8976578b2a41facff3b8bc (diff) | |
| download | zlib-07f2d4237eade624182b1cf11f1f516985aed620.tar.gz zlib-07f2d4237eade624182b1cf11f1f516985aed620.tar.bz2 zlib-07f2d4237eade624182b1cf11f1f516985aed620.zip | |
Vectorize the CRC-32 calculation on the s390x.
Use vector extensions when compiling for s390x and binutils knows
about them. At runtime, check whether kernel supports vector
extensions (it has to be not just the CPU, but also the kernel)
and choose between the regular and the vectorized implementations.
Co-authored-by: Eduard Stefes <eddy@linux.ibm.com>
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 8aa8751f..8a8fde79 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
| @@ -103,7 +103,7 @@ check_include_file(unistd.h HAVE_UNISTD_H) | |||
| 103 | if(MSVC) | 103 | if(MSVC) |
| 104 | set(CMAKE_REQUIRED_FLAGS "-WX") | 104 | set(CMAKE_REQUIRED_FLAGS "-WX") |
| 105 | else(MSVC) | 105 | else(MSVC) |
| 106 | set(CMAKE_REQUIRED_FLAGS "-WError") | 106 | set(CMAKE_REQUIRED_FLAGS "-Werror") |
| 107 | endif(MSVC) | 107 | endif(MSVC) |
| 108 | 108 | ||
| 109 | check_c_source_compiles( | 109 | check_c_source_compiles( |
