Commit 600d2904 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Add a CPU capability for ARM NEON

Currently, detection is done at build time. Feel free to add run-time
detect if you know how.
parent d3c28438
......@@ -798,6 +798,7 @@ VLC_EXPORT(int, vlc_wclosedir, ( void *_p_dir ));
#define CPU_CAPABILITY_SSE (1<<6)
#define CPU_CAPABILITY_SSE2 (1<<7)
#define CPU_CAPABILITY_ALTIVEC (1<<16)
#define CPU_CAPABILITY_NEON (1<<24)
#define CPU_CAPABILITY_FPU (1<<31)
VLC_EXPORT( unsigned, vlc_CPU, ( void ) );
......
......@@ -229,6 +229,9 @@ out:
# if defined( __ARM_EABI__ ) && !defined( __SOFTFP__ )
// i_capabilities |= CPU_CAPABILITY_FPU;
# endif
# if defined( __ARM_NEON__ )
i_capabilities |= CPU_CAPABILITY_NEON;
# endif
#elif defined( __powerpc__ ) || defined( __ppc__ ) || defined( __ppc64__ )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment