add necessary modifications to CMake system to enable building on ARM, add arm_neon.h intrinsic header to intrinsics.h

This commit is contained in:
Konstantinos Margaritis
2020-10-06 12:44:23 +03:00
parent b1170bcc2e
commit 5952c64066
5 changed files with 57 additions and 22 deletions

View File

@@ -45,6 +45,10 @@
# endif
#endif
#if defined(HAVE_C_ARM_NEON_H)
# define USE_ARM_NEON_H
#endif
#ifdef __cplusplus
# if defined(HAVE_CXX_INTRIN_H)
# define USE_INTRIN_H
@@ -59,6 +63,8 @@
#include <x86intrin.h>
#elif defined(USE_INTRIN_H)
#include <intrin.h>
#elif defined(USE_ARM_NEON_H)
#include <arm_neon.h>
#else
#error no intrinsics file
#endif