use __ARM_NEON along with __ARM_NEON__ to detect NEON availability
'__ARM_NEON' is proper symbol in ARM C Language Extensions '__ARM_NEON__' is legacy and not defined anymore in Aarch64
This commit is contained in:
parent
615e010e56
commit
a1956187ad
@ -194,7 +194,7 @@ inline void decrypt_cbc_ofb(uint8_t *buf, size_t n, const iv_type &iv, const wor
|
||||
decrypt_block<x86::xmm>(buf, n, state, key, round);
|
||||
}
|
||||
|
||||
#elif defined(__ARM_NEON__)
|
||||
#elif defined(__ARM_NEON__) || defined(__ARM_NEON)
|
||||
if (MULTI2_LIKELY(n == 184)) {
|
||||
decrypt_block<arm::neon2<7> >(buf, n, state, key, round);
|
||||
decrypt_block<arm::neon2<8> >(buf, n, state, key, round);
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#if defined(__ARM_NEON__)
|
||||
#if defined(__ARM_NEON__) || defined(__ARM_NEON)
|
||||
|
||||
#if !defined(__BYTE_ORDER__) || !defined(__ORDER_LITTLE_ENDIAN__) || (__BYTE_ORDER__) != (__ORDER_LITTLE_ENDIAN__)
|
||||
#error "Currently, USE_NEON is only for little-endian."
|
||||
@ -110,4 +110,4 @@ inline arm::neon rot1_add_dec<arm::neon>(const arm::neon &v) {
|
||||
|
||||
}
|
||||
|
||||
#endif /* __ARM_NEON__ */
|
||||
#endif /* __ARM_NEON__ || __ARM_NEON */
|
||||
|
@ -1,6 +1,6 @@
|
||||
#pragma once
|
||||
|
||||
#if defined(__ARM_NEON__)
|
||||
#if defined(__ARM_NEON__) || defined(__ARM_NEON)
|
||||
|
||||
#include <utility>
|
||||
#include <arm_neon.h>
|
||||
@ -198,4 +198,4 @@ inline arm::neon2<S> rot1_add_dec(const arm::neon2<S> &v) {
|
||||
|
||||
}
|
||||
|
||||
#endif /* __ARM_NEON__ */
|
||||
#endif /* __ARM_NEON__ || __ARM_NEON */
|
||||
|
Loading…
x
Reference in New Issue
Block a user