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
|
#ifdef LIN_NEON
|
||||||
#include <sys/auxv.h>
|
#include <sys/auxv.h>
|
||||||
#include <asm/hwcap.h>
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
HallocySimdType hallocy_is_simd_supported(void) {
|
HallocySimdType hallocy_is_simd_supported(void) {
|
||||||
|
|
@ -67,8 +66,9 @@ HallocySimdType hallocy_is_simd_supported(void) {
|
||||||
return hallocy_supported_simd;
|
return hallocy_supported_simd;
|
||||||
}
|
}
|
||||||
#elif defined(LIN_NEON)
|
#elif defined(LIN_NEON)
|
||||||
if (getauxval(AT_HWCAP) & HWCAP_NEON) {
|
if (getauxval(16) & (1 << 12)) {
|
||||||
hallocy_is_simd_supported = HALLOCY_SIMD_NEON;
|
hallocy_supported_simd = HALLOCY_SIMD_NEON;
|
||||||
|
return hallocy_supported_simd;
|
||||||
}
|
}
|
||||||
#elif defined(LIN_SIMD)
|
#elif defined(LIN_SIMD)
|
||||||
unsigned int a, b, c, d;
|
unsigned int a, b, c, d;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue