| 1 |
#ifndef ARM_ACLE_INTRINS_H |
| 2 |
#define ARM_ACLE_INTRINS_H |
| 3 |
|
| 4 |
#include <stdint.h> |
| 5 |
#ifdef _MSC_VER |
| 6 |
# include <intrin.h> |
| 7 |
#elif defined(HAVE_ARM_ACLE_H) |
| 8 |
# include <arm_acle.h> |
| 9 |
#endif |
| 10 |
|
| 11 |
#ifdef ARM_ACLE |
| 12 |
#if defined(__aarch64__) |
| 13 |
# define Z_TARGET_CRC Z_TARGET("+crc") |
| 14 |
#else |
| 15 |
# define Z_TARGET_CRC |
| 16 |
#endif |
| 17 |
#endif |
| 18 |
|
| 19 |
#ifdef ARM_SIMD |
| 20 |
#ifdef _MSC_VER |
| 21 |
typedef uint32_t uint16x2_t; |
| 22 |
|
| 23 |
#define __uqsub16 _arm_uqsub16 |
| 24 |
#elif !defined(ARM_SIMD_INTRIN) |
| 25 |
typedef uint32_t uint16x2_t; |
| 26 |
|
| 27 |
static inline uint16x2_t __uqsub16(uint16x2_t __a, uint16x2_t __b) { |
| 28 |
uint16x2_t __c; |
| 29 |
__asm__ __volatile__("uqsub16 %0, %1, %2" : "=r" (__c) : "r"(__a), "r"(__b)); |
| 30 |
return __c; |
| 31 |
} |
| 32 |
#endif |
| 33 |
#endif |
| 34 |
|
| 35 |
#endif // include guard ARM_ACLE_INTRINS_H |