Fix Andoid ARMv8 builds
This toolchain is pretty lame. It does not make CRC or Crypto intrinsics availablepull/566/head
parent
9683b8068e
commit
4e86f42d78
9
config.h
9
config.h
|
|
@ -571,8 +571,9 @@ NAMESPACE_END
|
||||||
// Requires ARMv8 and ACLE 2.0. GCC requires 4.8 and above.
|
// Requires ARMv8 and ACLE 2.0. GCC requires 4.8 and above.
|
||||||
// LLVM Clang requires 3.5. Apple Clang is unknown at the moment.
|
// LLVM Clang requires 3.5. Apple Clang is unknown at the moment.
|
||||||
// Microsoft plans to support ARM-64, but its not clear how to detect it.
|
// Microsoft plans to support ARM-64, but its not clear how to detect it.
|
||||||
|
// TODO: Add Android ARMv8 support for CRC32
|
||||||
// TODO: Add MSC_VER and ARM-64 platform define when available
|
// TODO: Add MSC_VER and ARM-64 platform define when available
|
||||||
#if !defined(CRYPTOPP_ARM_CRC32_AVAILABLE) && !defined(CRYPTOPP_DISABLE_ASM) && !defined(__apple_build_version__)
|
#if !defined(CRYPTOPP_ARM_CRC32_AVAILABLE) && !defined(CRYPTOPP_DISABLE_ASM) && !defined(__apple_build_version__) && !defined(__ANDROID__)
|
||||||
# if (defined(__ARM_FEATURE_CRC32) || (CRYPTOPP_MSC_VERSION >= 1910) || \
|
# if (defined(__ARM_FEATURE_CRC32) || (CRYPTOPP_MSC_VERSION >= 1910) || \
|
||||||
defined(__aarch32__) || defined(__aarch64__))
|
defined(__aarch32__) || defined(__aarch64__))
|
||||||
# define CRYPTOPP_ARM_CRC32_AVAILABLE 1
|
# define CRYPTOPP_ARM_CRC32_AVAILABLE 1
|
||||||
|
|
@ -582,8 +583,9 @@ NAMESPACE_END
|
||||||
// Requires ARMv8 and ACLE 2.0. GCC requires 4.8 and above.
|
// Requires ARMv8 and ACLE 2.0. GCC requires 4.8 and above.
|
||||||
// LLVM Clang requires 3.5. Apple Clang is unknown at the moment.
|
// LLVM Clang requires 3.5. Apple Clang is unknown at the moment.
|
||||||
// Microsoft plans to support ARM-64, but its not clear how to detect it.
|
// Microsoft plans to support ARM-64, but its not clear how to detect it.
|
||||||
|
// TODO: Add Android ARMv8 support for PMULL
|
||||||
// TODO: Add MSC_VER and ARM-64 platform define when available
|
// TODO: Add MSC_VER and ARM-64 platform define when available
|
||||||
#if !defined(CRYPTOPP_ARM_PMULL_AVAILABLE) && !defined(CRYPTOPP_DISABLE_ASM) && !defined(__apple_build_version__)
|
#if !defined(CRYPTOPP_ARM_PMULL_AVAILABLE) && !defined(CRYPTOPP_DISABLE_ASM) && !defined(__apple_build_version__) && !defined(__ANDROID__)
|
||||||
# if defined(__ARM_FEATURE_CRYPTO) || (CRYPTOPP_MSC_VERSION >= 1910) || \
|
# if defined(__ARM_FEATURE_CRYPTO) || (CRYPTOPP_MSC_VERSION >= 1910) || \
|
||||||
defined(__aarch32__) || defined(__aarch64__)
|
defined(__aarch32__) || defined(__aarch64__)
|
||||||
# define CRYPTOPP_ARM_PMULL_AVAILABLE 1
|
# define CRYPTOPP_ARM_PMULL_AVAILABLE 1
|
||||||
|
|
@ -593,8 +595,9 @@ NAMESPACE_END
|
||||||
// Requires ARMv8 and ACLE 2.0. GCC requires 4.8 and above.
|
// Requires ARMv8 and ACLE 2.0. GCC requires 4.8 and above.
|
||||||
// LLVM Clang requires 3.5. Apple Clang is unknown at the moment.
|
// LLVM Clang requires 3.5. Apple Clang is unknown at the moment.
|
||||||
// Microsoft plans to support ARM-64, but its not clear how to detect it.
|
// Microsoft plans to support ARM-64, but its not clear how to detect it.
|
||||||
|
// TODO: Add Android ARMv8 support for AES and SHA
|
||||||
// TODO: Add MSC_VER and ARM-64 platform define when available
|
// TODO: Add MSC_VER and ARM-64 platform define when available
|
||||||
#if !defined(CRYPTOPP_ARM_CRYPTO_AVAILABLE) && !defined(CRYPTOPP_DISABLE_ASM)
|
#if !defined(CRYPTOPP_ARM_CRYPTO_AVAILABLE) && !defined(CRYPTOPP_DISABLE_ASM) && !defined(__ANDROID__)
|
||||||
# if defined(__ARM_FEATURE_CRYPTO) || (CRYPTOPP_MSC_VERSION >= 1910) || \
|
# if defined(__ARM_FEATURE_CRYPTO) || (CRYPTOPP_MSC_VERSION >= 1910) || \
|
||||||
defined(__aarch32__) || defined(__aarch64__)
|
defined(__aarch32__) || defined(__aarch64__)
|
||||||
# define CRYPTOPP_ARM_AES_AVAILABLE 1
|
# define CRYPTOPP_ARM_AES_AVAILABLE 1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue