mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-10-09 15:52:27 +03:00
add arm simple cpuid_flags
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
|
||||
#include "config.h"
|
||||
#include "hs_common.h"
|
||||
#include "ue2common.h"
|
||||
#if defined(ARCH_X86_64)
|
||||
#include "util/arch/x86/cpuid_inline.h"
|
||||
#endif
|
||||
@@ -35,9 +36,13 @@
|
||||
HS_PUBLIC_API
|
||||
hs_error_t HS_CDECL hs_valid_platform(void) {
|
||||
/* Hyperscan requires SSSE3, anything else is a bonus */
|
||||
#if defined(ARCH_IA32) || defined(ARCH_X86_64)
|
||||
if (check_ssse3()) {
|
||||
return HS_SUCCESS;
|
||||
} else {
|
||||
return HS_ARCH_ERROR;
|
||||
}
|
||||
#elif defined(ARCH_ARM32) || defined(ARCH_AARCH64)
|
||||
return HS_SUCCESS;
|
||||
#endif
|
||||
}
|
||||
|
Reference in New Issue
Block a user