diff options
author | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2024-05-26 00:00:00 +0000 |
---|---|---|
committer | Igor Pavlov <87184205+ip7z@users.noreply.github.com> | 2024-05-27 12:41:10 +0500 |
commit | 89a73b901229c8550c172c9556ff8442ae7ac4b8 (patch) | |
tree | 00bf950adf3b20f36efe4ffa1065676869b040a5 /C/CpuArch.h | |
parent | fc662341e6f85da78ada0e443f6116b978f79f22 (diff) | |
download | 7zip-24.06.tar.gz 7zip-24.06.tar.bz2 7zip-24.06.zip |
24.0624.06
Diffstat (limited to 'C/CpuArch.h')
-rw-r--r-- | C/CpuArch.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/C/CpuArch.h b/C/CpuArch.h index dfc68f1..d632c2b 100644 --- a/C/CpuArch.h +++ b/C/CpuArch.h | |||
@@ -1,5 +1,5 @@ | |||
1 | /* CpuArch.h -- CPU specific code | 1 | /* CpuArch.h -- CPU specific code |
2 | 2024-05-13 : Igor Pavlov : Public domain */ | 2 | 2024-05-18 : Igor Pavlov : Public domain */ |
3 | 3 | ||
4 | #ifndef ZIP7_INC_CPU_ARCH_H | 4 | #ifndef ZIP7_INC_CPU_ARCH_H |
5 | #define ZIP7_INC_CPU_ARCH_H | 5 | #define ZIP7_INC_CPU_ARCH_H |
@@ -370,12 +370,12 @@ MY_CPU_64BIT means that processor can work with 64-bit registers. | |||
370 | #define Z7_CPU_FAST_BSWAP_SUPPORTED | 370 | #define Z7_CPU_FAST_BSWAP_SUPPORTED |
371 | 371 | ||
372 | /* GCC can generate slow code that calls function for __builtin_bswap32() for: | 372 | /* GCC can generate slow code that calls function for __builtin_bswap32() for: |
373 | - GCC for RISCV, if Zbb extension is not used. | 373 | - GCC for RISCV, if Zbb/XTHeadBb extension is not used. |
374 | - GCC for SPARC. | 374 | - GCC for SPARC. |
375 | The code from CLANG for SPARC also is not fastest. | 375 | The code from CLANG for SPARC also is not fastest. |
376 | So we don't define Z7_CPU_FAST_BSWAP_SUPPORTED in some cases. | 376 | So we don't define Z7_CPU_FAST_BSWAP_SUPPORTED in some cases. |
377 | */ | 377 | */ |
378 | #elif (!defined(MY_CPU_RISCV) || defined (__riscv_zbb)) \ | 378 | #elif (!defined(MY_CPU_RISCV) || defined (__riscv_zbb) || defined(__riscv_xtheadbb)) \ |
379 | && !defined(MY_CPU_SPARC) \ | 379 | && !defined(MY_CPU_SPARC) \ |
380 | && ( \ | 380 | && ( \ |
381 | (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))) \ | 381 | (defined(__GNUC__) && (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3))) \ |
@@ -607,7 +607,7 @@ UInt32 Z7_FASTCALL z7_x86_cpuid_GetMaxFunc(void); | |||
607 | BoolInt CPU_IsSupported_AES(void); | 607 | BoolInt CPU_IsSupported_AES(void); |
608 | BoolInt CPU_IsSupported_AVX(void); | 608 | BoolInt CPU_IsSupported_AVX(void); |
609 | BoolInt CPU_IsSupported_AVX2(void); | 609 | BoolInt CPU_IsSupported_AVX2(void); |
610 | // BoolInt CPU_IsSupported_AVX512F_AVX512VL(void); | 610 | BoolInt CPU_IsSupported_AVX512F_AVX512VL(void); |
611 | BoolInt CPU_IsSupported_VAES_AVX2(void); | 611 | BoolInt CPU_IsSupported_VAES_AVX2(void); |
612 | BoolInt CPU_IsSupported_CMOV(void); | 612 | BoolInt CPU_IsSupported_CMOV(void); |
613 | BoolInt CPU_IsSupported_SSE(void); | 613 | BoolInt CPU_IsSupported_SSE(void); |