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.
|
# I have to admit its a bit complex and I don't fully understand it.
|
||||||
|
|
||||||
version: 1.0.{build}
|
version: 1.0.{build}
|
||||||
clone_depth: 1
|
clone_depth: 3
|
||||||
skip_tags: true
|
skip_tags: true
|
||||||
|
|
||||||
configuration:
|
configuration:
|
||||||
|
|
|
||||||
6
neon.cpp
6
neon.cpp
|
|
@ -14,6 +14,9 @@
|
||||||
# ifndef HWCAP_ASIMD
|
# ifndef HWCAP_ASIMD
|
||||||
# define HWCAP_ASIMD (1 << 1)
|
# define HWCAP_ASIMD (1 << 1)
|
||||||
# endif
|
# endif
|
||||||
|
# ifndef HWCAP_ARM_NEON
|
||||||
|
# define HWCAP_ARM_NEON 4096
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (CRYPTOPP_ARM_NEON_AVAILABLE)
|
#if (CRYPTOPP_ARM_NEON_AVAILABLE)
|
||||||
|
|
@ -73,6 +76,9 @@ bool CPU_TryNEON_ARM()
|
||||||
# if defined(__linux__) && (defined(__aarch32__) || defined(__aarch64__))
|
# if defined(__linux__) && (defined(__aarch32__) || defined(__aarch64__))
|
||||||
if (getauxval(AT_HWCAP) & HWCAP_ASIMD)
|
if (getauxval(AT_HWCAP) & HWCAP_ASIMD)
|
||||||
return true;
|
return true;
|
||||||
|
# elif defined(__linux__) && defined(__arm__)
|
||||||
|
if (getauxval(AT_HWCAP) & HWCAP_ARM_NEON)
|
||||||
|
return true;
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
// longjmp and clobber warnings. Volatile is required.
|
// longjmp and clobber warnings. Volatile is required.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue