mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
autoconf: proper check for ARM crypto extensions
This commit is contained in:
+4
-2
@@ -412,8 +412,9 @@ AS_IF([test "x$EMSCRIPTEN" = "x"], [
|
|||||||
|
|
||||||
#include <arm_neon.h>
|
#include <arm_neon.h>
|
||||||
]], [[
|
]], [[
|
||||||
|
int64x2_t x = { 0, 0 };
|
||||||
vaeseq_u8(vmovq_n_u8(0), vmovq_n_u8(0));
|
vaeseq_u8(vmovq_n_u8(0), vmovq_n_u8(0));
|
||||||
vmull_high_p64(vmovq_n_u8(0), vmovq_n_u8(0));
|
vmull_high_p64(vreinterpretq_p64_s64(x), vreinterpretq_p64_s64(x));
|
||||||
|
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
# pragma clang attribute pop
|
# pragma clang attribute pop
|
||||||
@@ -445,8 +446,9 @@ AS_IF([test "x$EMSCRIPTEN" = "x"], [
|
|||||||
|
|
||||||
#include <arm_neon.h>
|
#include <arm_neon.h>
|
||||||
]], [[
|
]], [[
|
||||||
|
int64x2_t x = { 0, 0 };
|
||||||
vaeseq_u8(vmovq_n_u8(0), vmovq_n_u8(0));
|
vaeseq_u8(vmovq_n_u8(0), vmovq_n_u8(0));
|
||||||
vmull_high_p64(vmovq_n_u8(0), vmovq_n_u8(0));
|
vmull_high_p64(vreinterpretq_p64_s64(x), vreinterpretq_p64_s64(x));
|
||||||
|
|
||||||
#ifdef __clang__
|
#ifdef __clang__
|
||||||
# pragma clang attribute pop
|
# pragma clang attribute pop
|
||||||
|
|||||||
Reference in New Issue
Block a user