Skip to content

Commit

Permalink
Port the GCC target changes for aarch64 to aegis
Browse files Browse the repository at this point in the history
Fixes #1313
  • Loading branch information
jedisct1 committed Sep 13, 2023
1 parent b795a93 commit fb4533b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion src/libsodium/crypto_aead/aegis128l/aegis128l_armcrypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@
#ifdef __clang__
#pragma clang attribute push(__attribute__((target("neon,crypto,aes"))), apply_to = function)
#elif defined(__GNUC__)
#pragma GCC target("neon,crypto,aes")
#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
Expand Down
5 changes: 4 additions & 1 deletion src/libsodium/crypto_aead/aegis256/aegis256_armcrypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,12 @@
#ifdef __clang__
#pragma clang attribute push(__attribute__((target("neon,crypto,aes"))), apply_to = function)
#elif defined(__GNUC__)
#pragma GCC target("neon,crypto,aes")
#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
Expand Down

0 comments on commit fb4533b

Please sign in to comment.