diff options
author | Mike Blumenkrantz <zmike@samsung.com> | 2018-06-22 13:32:04 -0400 |
---|---|---|
committer | Mike Blumenkrantz <zmike@samsung.com> | 2018-06-22 13:32:04 -0400 |
commit | 1f5620885e593a3628122230eb47b26a0b2c7c96 (patch) | |
tree | ef97a6d0fcaff20c1eb36d244cb40c07f7f547e1 | |
parent | 143d3b63be0437942e5f17289b234c48ec9f25c7 (diff) | |
download | efl-devs/discomfitor/pending.tar.gz |
-rw-r--r-- | src/lib/evas/common/evas_cpu.c | 18 |
1 files changed, 18 insertions, 0 deletions
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) |