1
0
mirror of https://github.com/madler/zlib.git synced 2026-10-25 14:39:19 +03:00
Files
Ilya Leoshkevich 07f2d4237e 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>
2026-01-27 20:22:17 -08:00
..

IBM Z mainframes starting from version z13 provide vector instructions, which 
allows vectorization of crc32. This extension is build by default when targeting
ibm s390x. However this extension can disabled if desired:

    # for configure build
    $ ./configure --disable-crcvx

    # for cmake build
    $ cmake .. -DZLIB_CRC32VX=off