1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-24 12:36:01 -07:00

Port the GCC target changes for aarch64 to aegis

Fixes #1313
This commit is contained in:
Frank Denis 2023-09-13 15:46:16 +02:00
parent b795a93fa8
commit fb4533b0a9
2 changed files with 8 additions and 2 deletions

View File

@ -20,9 +20,12 @@
#ifdef __clang__ #ifdef __clang__
#pragma clang attribute push(__attribute__((target("neon,crypto,aes"))), apply_to = function) #pragma clang attribute push(__attribute__((target("neon,crypto,aes"))), apply_to = function)
#elif defined(__GNUC__) #elif defined(__GNUC__)
#pragma GCC target("neon,crypto,aes") #pragma GCC target("+simd+crypto")
#endif #endif
#ifndef __ARM_FEATURE_CRYPTO
#define __ARM_FEATURE_CRYPTO 1
#endif
#ifndef __ARM_FEATURE_AES #ifndef __ARM_FEATURE_AES
#define __ARM_FEATURE_AES 1 #define __ARM_FEATURE_AES 1
#endif #endif

View File

@ -20,9 +20,12 @@
#ifdef __clang__ #ifdef __clang__
#pragma clang attribute push(__attribute__((target("neon,crypto,aes"))), apply_to = function) #pragma clang attribute push(__attribute__((target("neon,crypto,aes"))), apply_to = function)
#elif defined(__GNUC__) #elif defined(__GNUC__)
#pragma GCC target("neon,crypto,aes") #pragma GCC target("+simd+crypto")
#endif #endif
#ifndef __ARM_FEATURE_CRYPTO
#define __ARM_FEATURE_CRYPTO 1
#endif
#ifndef __ARM_FEATURE_AES #ifndef __ARM_FEATURE_AES
#define __ARM_FEATURE_AES 1 #define __ARM_FEATURE_AES 1
#endif #endif