mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 11:18:52 +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
@@ -231,7 +231,7 @@ static const aes_impl_ops_t *aes_all_impl[] = {
|
||||
#if defined(__x86_64)
|
||||
&aes_x86_64_impl,
|
||||
#endif
|
||||
#if defined(__x86_64) && defined(HAVE_AES)
|
||||
#if defined(__x86_64) && HAVE_SIMD(AES)
|
||||
&aes_aesni_impl,
|
||||
#endif
|
||||
};
|
||||
@@ -315,7 +315,7 @@ aes_impl_init(void)
|
||||
* hardware accelerated version is the fastest.
|
||||
*/
|
||||
#if defined(__x86_64)
|
||||
#if defined(HAVE_AES)
|
||||
#if HAVE_SIMD(AES)
|
||||
if (aes_aesni_impl.is_supported()) {
|
||||
memcpy(&aes_fastest_impl, &aes_aesni_impl,
|
||||
sizeof (aes_fastest_impl));
|
||||
|
||||
@@ -23,7 +23,7 @@
|
||||
* Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
|
||||
*/
|
||||
|
||||
#if defined(__x86_64) && defined(HAVE_AES)
|
||||
#if defined(__x86_64) && HAVE_SIMD(AES)
|
||||
|
||||
#include <sys/simd.h>
|
||||
#include <sys/types.h>
|
||||
@@ -123,4 +123,4 @@ const aes_impl_ops_t aes_aesni_impl = {
|
||||
.name = "aesni"
|
||||
};
|
||||
|
||||
#endif /* defined(__x86_64) && defined(HAVE_AES) */
|
||||
#endif /* defined(__x86_64) && HAVE_SIMD(AES) */
|
||||
|
||||
Reference in New Issue
Block a user