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
parent
2ac6c6dd20
commit
4ebf9b915e
|
|
@ -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:
|
||||
|
|
|
|||
6
neon.cpp
6
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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue