fix(android build): fixed checking for simd version
This commit is contained in:
parent
4b87134390
commit
a5f43bce5a
1 changed files with 3 additions and 3 deletions
|
|
@ -23,7 +23,6 @@
|
|||
|
||||
#ifdef LIN_NEON
|
||||
#include <sys/auxv.h>
|
||||
#include <asm/hwcap.h>
|
||||
#endif
|
||||
|
||||
HallocySimdType hallocy_is_simd_supported(void) {
|
||||
|
|
@ -67,8 +66,9 @@ HallocySimdType hallocy_is_simd_supported(void) {
|
|||
return hallocy_supported_simd;
|
||||
}
|
||||
#elif defined(LIN_NEON)
|
||||
if (getauxval(AT_HWCAP) & HWCAP_NEON) {
|
||||
hallocy_is_simd_supported = HALLOCY_SIMD_NEON;
|
||||
if (getauxval(16) & (1 << 12)) {
|
||||
hallocy_supported_simd = HALLOCY_SIMD_NEON;
|
||||
return hallocy_supported_simd;
|
||||
}
|
||||
#elif defined(LIN_SIMD)
|
||||
unsigned int a, b, c, d;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue