autoconf: improve check for ARM crypto extensions

And don't forget to include <arm_neon.h> for the second
attempt.
This commit is contained in:
Frank Denis
2023-09-13 18:57:27 +02:00
parent f26b9f72eb
commit e5deb2c85d
+4
View File
@@ -413,6 +413,7 @@ AS_IF([test "x$EMSCRIPTEN" = "x"], [
#include <arm_neon.h>
]], [[
vaeseq_u8(vmovq_n_u8(0), vmovq_n_u8(0));
vmull_high_p64(vmovq_n_u8(0), vmovq_n_u8(0));
#ifdef __clang__
# pragma clang attribute pop
@@ -441,8 +442,11 @@ AS_IF([test "x$EMSCRIPTEN" = "x"], [
#ifndef __ARM_FEATURE_AES
# define __ARM_FEATURE_AES 1
#endif
#include <arm_neon.h>
]], [[
vaeseq_u8(vmovq_n_u8(0), vmovq_n_u8(0));
vmull_high_p64(vmovq_n_u8(0), vmovq_n_u8(0));
#ifdef __clang__
# pragma clang attribute pop