32 lines
778 B
C
32 lines
778 B
C
#if defined(__x86_64__)
|
|
# undef ARM4_ASM
|
|
# undef ARM5E_ASM
|
|
# undef USE_NEON
|
|
#elif defined(__arm__)
|
|
# if defined(__ARM_NEON) || defined(__ARM_NEON__) || defined(__ARM_FEATURE_SIMD32)
|
|
/* Enable NEON support */
|
|
# undef ARM4_ASM
|
|
# undef ARM5E_ASM
|
|
# define USE_NEON /**/
|
|
# elif defined(__ARM_ARCH_4__)
|
|
/* Make use of ARM4 assembly optimizations */
|
|
# define ARM4_ASM /**/
|
|
# undef ARM5E_ASM
|
|
# undef USE_NEON
|
|
# elif defined(__ARM_ARCH_5E__)
|
|
/* Make use of ARM5E assembly optimizations */
|
|
# undef ARM4_ASM
|
|
# define ARM5E_ASM /**/
|
|
# undef USE_NEON
|
|
# endif
|
|
#endif
|
|
|
|
/* Symbol visibility prefix */
|
|
#define EXPORT __attribute__((visibility("default")))
|
|
|
|
/* Debug fixed-point implementation */
|
|
#undef FIXED_DEBUG
|
|
|
|
/* Use C99 variable-size arrays */
|
|
#define VAR_ARRAYS /**/
|
|
|