Only perform runtime checks if the cpu features are enabled.

SVN revision: 7006
This commit is contained in:
rbdpngn 2003-06-10 14:52:16 +00:00 committed by rbdpngn
parent 2f63ba5e91
commit 47c156847f
1 changed files with 4 additions and 0 deletions

View File

@ -71,10 +71,14 @@ evas_common_cpu_init(void)
if (called) return;
called = 1;
#ifdef __i386__
#ifdef BUILD_MMX
cpu_feature_mask |= CPU_FEATURE_MMX *
evas_common_cpu_feature_test(evas_common_cpu_mmx_test);
#ifdef BUILD_SSE
cpu_feature_mask |= CPU_FEATURE_SSE *
evas_common_cpu_feature_test(evas_common_cpu_sse_test);
#endif /* BUILD_SSE */
#endif /* BUILD_MMX */
#endif /* __i386__ */
#ifdef __POWERPC__
#ifdef __VEC__