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:
Rob Norris
2026-03-04 22:28:21 +11:00
committed by Brian Behlendorf
parent 92a6ab405f
commit 35f74f84e6
33 changed files with 113 additions and 112 deletions
+4 -4
View File
@@ -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) */