1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-24 12:36:01 -07:00
This commit is contained in:
Frank Denis 2023-09-12 15:59:44 +02:00
parent e2935b6943
commit dddd55df72
3 changed files with 56 additions and 9 deletions

View File

@ -1181,7 +1181,7 @@ case $cpu-$vendor in
case $cpu in case $cpu in
1750a | 580 \ 1750a | 580 \
| a29k \ | a29k \
| aarch64 | aarch64c | aarch64_be \ | aarch64 | aarch64_be \
| abacus \ | abacus \
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \ | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] \
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \ | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] \

View File

@ -370,7 +370,14 @@ EXTRA_DIST = \
msvc/vs2019/libsodium/libsodium.xml \ msvc/vs2019/libsodium/libsodium.xml \
msvc/vs2019/libsodium.import.props \ msvc/vs2019/libsodium.import.props \
msvc/vs2019/libsodium.import.xml \ msvc/vs2019/libsodium.import.xml \
msvc/vs2019/libsodium.sln msvc/vs2022/libsodium.sln \
msvc/vs2022/libsodium/libsodium.props \
msvc/vs2022/libsodium/libsodium.vcxproj \
msvc/vs2022/libsodium/libsodium.vcxproj.filters \
msvc/vs2022/libsodium/libsodium.xml \
msvc/vs2022/libsodium.import.props \
msvc/vs2022/libsodium.import.xml \
msvc/vs2022/libsodium.sln
all: all-am all: all-am

54
configure vendored
View File

@ -18558,11 +18558,32 @@ then :
printf %s "checking for ARM crypto instructions set... " >&6; } printf %s "checking for ARM crypto instructions set... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <arm_neon.h>
#ifdef __clang__
# pragma clang attribute push(__attribute__((target("neon,crypto,aes"))), apply_to = function)
#elif defined(__GNUC__)
# pragma GCC target("+simd+crypto")
#endif
#ifndef __ARM_FEATURE_CRYPTO
# define __ARM_FEATURE_CRYPTO 1
#endif
#ifndef __ARM_FEATURE_AES
# define __ARM_FEATURE_AES 1
#endif
#include <arm_neon.h>
int int
main (void) main (void)
{ {
vaeseq_u8(vmovq_n_u8(0), vmovq_n_u8(__ARM_FEATURE_CRYPTO))
vaeseq_u8(vmovq_n_u8(0), vmovq_n_u8(0));
#ifdef __clang__
# pragma clang attribute pop
#endif
(void) 0
; ;
return 0; return 0;
} }
@ -18620,11 +18641,30 @@ then :
printf %s "checking for ARM crypto instructions set with -march=armv8-a+crypto+aes... " >&6; } printf %s "checking for ARM crypto instructions set with -march=armv8-a+crypto+aes... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */ /* end confdefs.h. */
#include <arm_neon.h>
#ifdef __clang__
# pragma clang attribute push(__attribute__((target("neon,crypto,aes"))), apply_to = function)
#elif defined(__GNUC__)
# pragma GCC target("+simd+crypto")
#endif
#ifndef __ARM_FEATURE_CRYPTO
# define __ARM_FEATURE_CRYPTO 1
#endif
#ifndef __ARM_FEATURE_AES
# define __ARM_FEATURE_AES 1
#endif
int int
main (void) main (void)
{ {
vaeseq_u8(vmovq_n_u8(0), vmovq_n_u8(__ARM_FEATURE_CRYPTO))
vaeseq_u8(vmovq_n_u8(0), vmovq_n_u8(0));
#ifdef __clang__
# pragma clang attribute pop
#endif
(void) 0
; ;
return 0; return 0;
} }
@ -21164,10 +21204,10 @@ then :
fi fi
ac_fn_c_check_func "$LINENO" "getauxva" "ac_cv_func_getauxva" ac_fn_c_check_func "$LINENO" "getauxval" "ac_cv_func_getauxval"
if test "x$ac_cv_func_getauxva" = xyes if test "x$ac_cv_func_getauxval" = xyes
then : then :
printf "%s\n" "#define HAVE_GETAUXVA 1" >>confdefs.h printf "%s\n" "#define HAVE_GETAUXVAL 1" >>confdefs.h
fi fi
ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info" ac_fn_c_check_func "$LINENO" "elf_aux_info" "ac_cv_func_elf_aux_info"