summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_cpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evas/common/evas_cpu.c')
-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)