mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
Add very basic feature flagging for NEON
This commit is contained in:
parent
03aa9e27c8
commit
62704db5ed
8 changed files with 210 additions and 26 deletions
|
@ -61,6 +61,16 @@ THE SOFTWARE.
|
|||
# endif
|
||||
#endif
|
||||
|
||||
// ARM64 mandates implementation of NEON
|
||||
#if defined(__arm64__)
|
||||
#define COMPILER_HAS_SIMD_NEON
|
||||
#define arm_has_neon() (true)
|
||||
// ARMv7 or older, NEON is optional and autodetection is difficult
|
||||
#elif defined(__ARM_NEON)
|
||||
#define COMPILER_HAS_SIMD_NEON
|
||||
#define arm_has_neon() (false)
|
||||
#endif
|
||||
|
||||
typedef enum {
|
||||
SIMD_AUTO,
|
||||
#if defined(COMPILER_HAS_SIMD_AVX512)
|
||||
|
@ -71,6 +81,9 @@ typedef enum {
|
|||
SIMD_AVX,
|
||||
SIMD_SSE2,
|
||||
SIMD_MMX,
|
||||
#endif
|
||||
#if defined(COMPILER_HAS_SIMD_NEON)
|
||||
SIMD_NEON,
|
||||
#endif
|
||||
SIMD_NONE,
|
||||
} SIMDExecInstr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue