1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-19 18:15:18 -07:00

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:56:14 +02:00
parent fb4533b0a9
commit 97f7722f2c
2 changed files with 8 additions and 0 deletions

4
configure vendored
View File

@ -18581,6 +18581,7 @@ main (void)
{
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
@ -18657,11 +18658,14 @@ printf %s "checking for ARM crypto instructions set with -march=armv8-a+crypto+a
# define __ARM_FEATURE_AES 1
#endif
#include <arm_neon.h>
int
main (void)
{
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

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