mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-27 15:52:28 +00:00
Support avx512f + vpclmulqdq crc32() acceleration
Cosmo's _Cz_crc32() function now goes 73 GiB/s on Threadripper. This will significantly improve the performance of the PKZIP file format. This algorithm is also used by apelink, to create deterministic ids.
This commit is contained in:
parent
7c8df05042
commit
a05ce3ad9d
8 changed files with 385 additions and 8 deletions
2
third_party/zlib/cpu_features.internal.h
vendored
2
third_party/zlib/cpu_features.internal.h
vendored
|
@ -16,7 +16,7 @@ COSMOPOLITAN_C_START_
|
|||
#define x86_cpu_enable_sse2 X86_HAVE(SSE2)
|
||||
#define x86_cpu_enable_ssse3 X86_HAVE(SSSE3)
|
||||
#define x86_cpu_enable_simd (X86_HAVE(SSE4_2) && X86_HAVE(PCLMUL))
|
||||
#define x86_cpu_enable_avx512 X86_HAVE(AVX512F)
|
||||
#define x86_cpu_enable_avx512 (X86_HAVE(AVX512F) && X86_HAVE(PCLMUL) && X86_HAVE(VPCLMULQDQ))
|
||||
#define cpu_check_features() ((void)0)
|
||||
|
||||
#elif defined(__aarch64__)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue