summaryrefslogtreecommitdiff
path: root/src/lib/eina
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-12-08 04:46:03 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2018-12-08 04:46:03 +0000
commit3a075988e4abe4bc4d4f3fca5f97f7c55420433d (patch)
tree60946799559dba821d95811f3ff1aeceeff3651a /src/lib/eina
parent55854e9582ac2fdd6bf6a8a142668ee1c8cbded8 (diff)
evas cpu - just rely on eina cpu entirely to avboid feature dups
so evas cpu used to be the thing then eina cpu came and did the same and evas cpu optionalyl could lsit on top... just move it all to eina cpu so one central place does this and evas_cpu is purely a compat wrapper.
Diffstat (limited to 'src/lib/eina')
-rw-r--r--src/lib/eina/eina_cpu.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/src/lib/eina/eina_cpu.c b/src/lib/eina/eina_cpu.c
index 45b3b9295d..c61297803b 100644
--- a/src/lib/eina/eina_cpu.c
+++ b/src/lib/eina/eina_cpu.c
@@ -130,10 +130,7 @@ void _x86_simd(Eina_Cpu_Features *features)
130static void 130static void
131_arm_cpu_features(Eina_Cpu_Features *features) 131_arm_cpu_features(Eina_Cpu_Features *features)
132{ 132{
133 unsigned long aux; 133 unsigned long aux = getauxval(AT_HWCAP);
134
135 aux = getauxval(AT_HWCAP);
136
137# if defined(__aarch64__) 134# if defined(__aarch64__)
138 *features |= EINA_CPU_NEON; 135 *features |= EINA_CPU_NEON;
139# endif 136# endif
@@ -146,6 +143,17 @@ _arm_cpu_features(Eina_Cpu_Features *features)
146} 143}
147#endif 144#endif
148 145
146#if defined(HAVE_SYS_AUXV_H) && defined(HAVE_ASM_HWCAP_H) && (defined(__POWERPC__) && defined(__VEC__)) && defined(__linux__)
147static void
148_ppc_cpu_features(Eina_Cpu_Features *features)
149{
150# ifdef PPC_FEATURE_HAS_ALTIVEC
151 unsigned long aux = getauxval(AT_HWCAP);
152 if (aux & PPC_FEATURE_HAS_ALTIVEC) *features |= EINA_CPU_ALTIVEC;
153# endif
154}
155#endif
156
149/*============================================================================* 157/*============================================================================*
150* Global * 158* Global *
151*============================================================================*/ 159*============================================================================*/