From 1f5620885e593a3628122230eb47b26a0b2c7c96 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 22 Jun 2018 13:32:04 -0400 Subject: test --- src/lib/evas/common/evas_cpu.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/lib/evas/common/evas_cpu.c b/src/lib/evas/common/evas_cpu.c index 2aef0af26b..a78bab21db 100644 --- a/src/lib/evas/common/evas_cpu.c +++ b/src/lib/evas/common/evas_cpu.c @@ -83,6 +83,23 @@ _cpu_check(Eina_Cpu_Features f) return (features & f) == f; } +#ifdef BUILD_ALTIVEC +# ifdef __POWERPC__ +# ifdef __VEC__ +# define NEED_FEATURE_TEST +# endif +# endif +#endif +#ifdef __SPARC__ +# define NEED_FEATURE_TEST +#endif +#if defined(__ARM_ARCH__) +# ifdef BUILD_NEON +# define NEED_FEATURE_TEST +# endif +#endif + +#ifdef NEED_FEATURE_TEST int evas_common_cpu_feature_test(void (*feature)(void)) { @@ -123,6 +140,7 @@ evas_common_cpu_feature_test(void (*feature)(void)) return 0; #endif } +#endif EAPI void evas_common_cpu_init(void) -- cgit v1.2.1