summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-06-22 13:32:04 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-06-22 13:32:04 -0400
commit1f5620885e593a3628122230eb47b26a0b2c7c96 (patch)
treeef97a6d0fcaff20c1eb36d244cb40c07f7f547e1
parent143d3b63be0437942e5f17289b234c48ec9f25c7 (diff)
-rw-r--r--src/lib/evas/common/evas_cpu.c18
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)
83 return (features & f) == f; 83 return (features & f) == f;
84} 84}
85 85
86#ifdef BUILD_ALTIVEC
87# ifdef __POWERPC__
88# ifdef __VEC__
89# define NEED_FEATURE_TEST
90# endif
91# endif
92#endif
93#ifdef __SPARC__
94# define NEED_FEATURE_TEST
95#endif
96#if defined(__ARM_ARCH__)
97# ifdef BUILD_NEON
98# define NEED_FEATURE_TEST
99# endif
100#endif
101
102#ifdef NEED_FEATURE_TEST
86int 103int
87evas_common_cpu_feature_test(void (*feature)(void)) 104evas_common_cpu_feature_test(void (*feature)(void))
88{ 105{
@@ -123,6 +140,7 @@ evas_common_cpu_feature_test(void (*feature)(void))
123 return 0; 140 return 0;
124#endif 141#endif
125} 142}
143#endif
126 144
127EAPI void 145EAPI void
128evas_common_cpu_init(void) 146evas_common_cpu_init(void)