Ability to disable NEON code in runtime
authoretrunko <etrunko@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 15 Jul 2010 17:58:38 +0000 (17:58 +0000)
committeretrunko <etrunko@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Thu, 15 Jul 2010 17:58:38 +0000 (17:58 +0000)
Just set the EVAS_CPU_NO_NEON environment var if you want to disable Neon.
The same is done for other specific CPU codes, such as MMX, MMX2, SSE, etc.

git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@50271 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/engines/common/evas_cpu.c

index 1d286d6..a4e0977 100644 (file)
@@ -176,6 +176,8 @@ evas_common_cpu_init(void)
    cpu_feature_mask |= CPU_FEATURE_NEON *
      evas_common_cpu_feature_test(evas_common_cpu_neon_test);
    evas_common_cpu_end_opt();
+   if (getenv("EVAS_CPU_NO_NEON"))
+     cpu_feature_mask &= ~CPU_FEATURE_NEON;
 #endif
 #endif
 }