mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 14:58:30 +00:00
Make AARCH64 harder, better, faster, stronger
- Perform some housekeeping on scalar math function code - Import ARM's Optimized Routines for SIMD string processing - Upgrade to latest Chromium zlib and enable more SIMD optimizations
This commit is contained in:
parent
550b52abf6
commit
cc1732bc42
143 changed files with 15661 additions and 1329 deletions
24
third_party/zlib/cpu_features.internal.h
vendored
Normal file
24
third_party/zlib/cpu_features.internal.h
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
#ifndef COSMOPOLITAN_THIRD_PARTY_ZLIB_CPU_FEATURES_H_
|
||||
#define COSMOPOLITAN_THIRD_PARTY_ZLIB_CPU_FEATURES_H_
|
||||
#include "libc/nexgen32e/x86feature.h"
|
||||
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
||||
COSMOPOLITAN_C_START_
|
||||
#ifdef __x86_64__
|
||||
|
||||
#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 cpu_check_features() (void)0
|
||||
|
||||
#elif defined(__aarch64__)
|
||||
|
||||
#define cpu_check_features zlib_cpu_check_features
|
||||
_Hide extern int arm_cpu_enable_crc32;
|
||||
_Hide extern int arm_cpu_enable_pmull;
|
||||
_Hide void cpu_check_features(void);
|
||||
|
||||
#endif
|
||||
COSMOPOLITAN_C_END_
|
||||
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
||||
#endif /* COSMOPOLITAN_THIRD_PARTY_ZLIB_CPU_FEATURES_H_ */
|
Loading…
Add table
Add a link
Reference in a new issue