mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +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
@@ -174,19 +174,19 @@ static const fletcher_4_ops_t *fletcher_4_impls[] = {
|
||||
&fletcher_4_scalar_ops,
|
||||
&fletcher_4_superscalar_ops,
|
||||
&fletcher_4_superscalar4_ops,
|
||||
#if defined(HAVE_SSE2)
|
||||
#if HAVE_SIMD(SSE2)
|
||||
&fletcher_4_sse2_ops,
|
||||
#endif
|
||||
#if defined(HAVE_SSE2) && defined(HAVE_SSSE3)
|
||||
#if HAVE_SIMD(SSE2) && HAVE_SIMD(SSSE3)
|
||||
&fletcher_4_ssse3_ops,
|
||||
#endif
|
||||
#if defined(HAVE_AVX) && defined(HAVE_AVX2)
|
||||
#if HAVE_SIMD(AVX) && HAVE_SIMD(AVX2)
|
||||
&fletcher_4_avx2_ops,
|
||||
#endif
|
||||
#if defined(__x86_64) && defined(HAVE_AVX512F)
|
||||
#if defined(__x86_64) && HAVE_SIMD(AVX512F)
|
||||
&fletcher_4_avx512f_ops,
|
||||
#endif
|
||||
#if defined(__x86_64) && defined(HAVE_AVX512BW)
|
||||
#if defined(__x86_64) && HAVE_SIMD(AVX512BW)
|
||||
&fletcher_4_avx512bw_ops,
|
||||
#endif
|
||||
#if defined(__aarch64__) && !defined(__FreeBSD__)
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
* Copyright (C) 2016 Gvozden Nešković. All rights reserved.
|
||||
*/
|
||||
|
||||
#if defined(__x86_64) && defined(HAVE_AVX512F)
|
||||
#if defined(__x86_64) && HAVE_SIMD(AVX512F)
|
||||
|
||||
#include <sys/byteorder.h>
|
||||
#include <sys/frame.h>
|
||||
@@ -167,7 +167,7 @@ const fletcher_4_ops_t fletcher_4_avx512f_ops = {
|
||||
.name = "avx512f"
|
||||
};
|
||||
|
||||
#if defined(HAVE_AVX512BW)
|
||||
#if HAVE_SIMD(AVX512BW)
|
||||
static void
|
||||
fletcher_4_avx512bw_byteswap(fletcher_4_ctx_t *ctx, const void *buf,
|
||||
uint64_t size)
|
||||
@@ -219,4 +219,4 @@ const fletcher_4_ops_t fletcher_4_avx512bw_ops = {
|
||||
};
|
||||
#endif
|
||||
|
||||
#endif /* defined(__x86_64) && defined(HAVE_AVX512F) */
|
||||
#endif /* defined(__x86_64) && HAVE_SIMD(AVX512F) */
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
#if defined(HAVE_AVX) && defined(HAVE_AVX2)
|
||||
#if HAVE_SIMD(AVX) && HAVE_SIMD(AVX2)
|
||||
|
||||
#include <sys/spa_checksum.h>
|
||||
#include <sys/string.h>
|
||||
@@ -164,4 +164,4 @@ const fletcher_4_ops_t fletcher_4_avx2_ops = {
|
||||
.name = "avx2"
|
||||
};
|
||||
|
||||
#endif /* defined(HAVE_AVX) && defined(HAVE_AVX2) */
|
||||
#endif /* HAVE_SIMD(AVX) && HAVE_SIMD(AVX2) */
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
#if defined(HAVE_SSE2)
|
||||
#if HAVE_SIMD(SSE2)
|
||||
|
||||
#include <sys/simd.h>
|
||||
#include <sys/spa_checksum.h>
|
||||
@@ -165,9 +165,9 @@ const fletcher_4_ops_t fletcher_4_sse2_ops = {
|
||||
.name = "sse2"
|
||||
};
|
||||
|
||||
#endif /* defined(HAVE_SSE2) */
|
||||
#endif /* HAVE_SIMD(SSE2) */
|
||||
|
||||
#if defined(HAVE_SSE2) && defined(HAVE_SSSE3)
|
||||
#if HAVE_SIMD(SSE2) && HAVE_SIMD(SSSE3)
|
||||
static void
|
||||
fletcher_4_ssse3_byteswap(fletcher_4_ctx_t *ctx, const void *buf, uint64_t size)
|
||||
{
|
||||
@@ -220,4 +220,4 @@ const fletcher_4_ops_t fletcher_4_ssse3_ops = {
|
||||
.name = "ssse3"
|
||||
};
|
||||
|
||||
#endif /* defined(HAVE_SSE2) && defined(HAVE_SSSE3) */
|
||||
#endif /* HAVE_SIMD(SSE2) && HAVE_SIMD(SSSE3) */
|
||||
|
||||
Reference in New Issue
Block a user