mirror of
https://github.com/jedisct1/libsodium.git
synced 2024-12-20 02:25:14 -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:
parent
fb4533b0a9
commit
97f7722f2c
4
configure
vendored
4
configure
vendored
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user