mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-25 03:37:45 +03:00
Convert all HAVE_<name> SIMD gates to HAVE_SIMD(<name>)
The original names no longer exist, and the new ones will need to be selectable based on the current compilation target. Sponsored-by: TrueNAS Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Rob Norris <rob.norris@truenas.com> Closes #18285
This commit is contained in:
committed by
Brian Behlendorf
parent
92a6ab405f
commit
35f74f84e6
@@ -26,7 +26,7 @@
|
||||
* Copyright (c) 2022 Tino Reichardt <milky-zfs@mcmilk.de>
|
||||
*/
|
||||
|
||||
#if defined(HAVE_AVX2)
|
||||
#if HAVE_SIMD(AVX2)
|
||||
|
||||
#define _ASM
|
||||
#include <sys/asm_linkage.h>
|
||||
@@ -1822,7 +1822,7 @@ CMP_MSB_MASK:
|
||||
.long 0x80000000, 0x80000000, 0x80000000, 0x80000000
|
||||
BLAKE3_IV:
|
||||
.long 0x6A09E667, 0xBB67AE85, 0x3C6EF372, 0xA54FF53A
|
||||
#endif /* HAVE_AVX2 */
|
||||
#endif /* HAVE_SIMD(AVX2) */
|
||||
|
||||
#ifdef __ELF__
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
* Copyright (c) 2022 Tino Reichardt <milky-zfs@mcmilk.de>
|
||||
*/
|
||||
|
||||
#if defined(HAVE_AVX512F) && defined(HAVE_AVX512VL)
|
||||
#if HAVE_SIMD(AVX512F) && HAVE_SIMD(AVX512VL)
|
||||
|
||||
#define _ASM
|
||||
#include <sys/asm_linkage.h>
|
||||
@@ -2588,7 +2588,7 @@ BLAKE3_IV_2:
|
||||
BLAKE3_IV_3:
|
||||
.long 0xA54FF53A
|
||||
|
||||
#endif /* HAVE_AVX512 */
|
||||
#endif /* HAVE_SIMD(AVX512) */
|
||||
|
||||
#ifdef __ELF__
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
* Copyright (c) 2022 Tino Reichardt <milky-zfs@mcmilk.de>
|
||||
*/
|
||||
|
||||
#if defined(HAVE_SSE2)
|
||||
#if HAVE_SIMD(SSE2)
|
||||
|
||||
#define _ASM
|
||||
#include <sys/asm_linkage.h>
|
||||
@@ -2293,7 +2293,7 @@ PBLENDW_0x3F_MASK:
|
||||
PBLENDW_0xC0_MASK:
|
||||
.long 0x00000000, 0x00000000, 0x00000000, 0xFFFFFFFF
|
||||
|
||||
#endif /* HAVE_SSE2 */
|
||||
#endif /* HAVE_SIMD(SSE2) */
|
||||
|
||||
#ifdef __ELF__
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
* Copyright (c) 2022 Tino Reichardt <milky-zfs@mcmilk.de>
|
||||
*/
|
||||
|
||||
#if defined(HAVE_SSE4_1)
|
||||
#if HAVE_SIMD(SSE4_1)
|
||||
|
||||
#define _ASM
|
||||
#include <sys/asm_linkage.h>
|
||||
@@ -2031,7 +2031,7 @@ BLAKE3_BLOCK_LEN:
|
||||
CMP_MSB_MASK:
|
||||
.long 0x80000000, 0x80000000, 0x80000000, 0x80000000
|
||||
|
||||
#endif /* HAVE_SSE4_1 */
|
||||
#endif /* HAVE_SIMD(SSE4_1) */
|
||||
|
||||
#ifdef __ELF__
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
|
||||
Reference in New Issue
Block a user