diff --git a/.appveyor.yml b/.appveyor.yml index 0a43a049..2ef03f51 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -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: diff --git a/neon.cpp b/neon.cpp index 6b155ecb..f96ea993 100644 --- a/neon.cpp +++ b/neon.cpp @@ -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.