Ability to disable NEON code in runtime

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.



SVN revision: 50271
This commit is contained in:
Eduardo de Barros Lima 2010-07-15 17:58:38 +00:00
parent 9685d5d369
commit 9b3cf97523
1 changed files with 2 additions and 0 deletions

View 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
}