mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-15 17:02:14 +03:00
initial attempt for fat binary on Aarch64
This commit is contained in:
committed by
Konstantinos Margaritis
parent
6b2a42019b
commit
394d09fe45
@@ -31,6 +31,8 @@
|
||||
#include "ue2common.h"
|
||||
#if defined(ARCH_IA32) || defined(ARCH_X86_64)
|
||||
#include "util/arch/x86/cpuid_inline.h"
|
||||
#elif defined(ARCH_AARCH64)
|
||||
#include "util/arch/arm/cpuid_inline.h"
|
||||
#endif
|
||||
|
||||
HS_PUBLIC_API
|
||||
@@ -43,7 +45,11 @@ hs_error_t HS_CDECL hs_valid_platform(void) {
|
||||
return HS_ARCH_ERROR;
|
||||
}
|
||||
#elif defined(ARCH_ARM32) || defined(ARCH_AARCH64)
|
||||
return HS_SUCCESS;
|
||||
if (check_neon()) {
|
||||
return HS_SUCCESS;
|
||||
} else {
|
||||
return HS_ARCH_ERROR;
|
||||
}
|
||||
#elif defined(ARCH_PPC64EL)
|
||||
return HS_SUCCESS;
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user