Add ARM specific guard for Linux

Update AppVeyor config to checkout 3 deep to avoid "fatal: reference is not a tree: 89ccfad2d08..."
pull/461/head
Jeffrey Walton 2017-08-07 08:22:13 -04:00
parent 2ac6c6dd20
commit 4ebf9b915e
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
2 changed files with 7 additions and 1 deletions

View File

@ -3,7 +3,7 @@
# I have to admit its a bit complex and I don't fully understand it.
version: 1.0.{build}
clone_depth: 1
clone_depth: 3
skip_tags: true
configuration:

View File

@ -14,6 +14,9 @@
# ifndef HWCAP_ASIMD
# define HWCAP_ASIMD (1 << 1)
# endif
# ifndef HWCAP_ARM_NEON
# define HWCAP_ARM_NEON 4096
# endif
#endif
#if (CRYPTOPP_ARM_NEON_AVAILABLE)
@ -73,6 +76,9 @@ bool CPU_TryNEON_ARM()
# if defined(__linux__) && (defined(__aarch32__) || defined(__aarch64__))
if (getauxval(AT_HWCAP) & HWCAP_ASIMD)
return true;
# elif defined(__linux__) && defined(__arm__)
if (getauxval(AT_HWCAP) & HWCAP_ARM_NEON)
return true;
# endif
// longjmp and clobber warnings. Volatile is required.