From 13cb1497c43a5bffc29ca27933c37c5e3e898d94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Sat, 9 Jun 2007 12:56:14 +0200 Subject: If SSE, SSE2 and MMX are enabled at build-time, enable them and skip over the cpuid tests; a runtime CPU detection option could be supplied by configure, for instance. --- src/xine-utils/cpu_accel.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/xine-utils/cpu_accel.c') diff --git a/src/xine-utils/cpu_accel.c b/src/xine-utils/cpu_accel.c index 147a32ac5..e350898eb 100644 --- a/src/xine-utils/cpu_accel.c +++ b/src/xine-utils/cpu_accel.c @@ -58,7 +58,8 @@ static uint32_t arch_accel (void) { uint32_t caps; -#ifdef __x86_64__ +#if defined(__x86_64__) || \ + ( defined(__SSE__) && defined(__SSE2__) && defined(__MMX__) ) /* No need to test for this on AMD64, we know what the platform has. */ caps = MM_ACCEL_X86_MMX | MM_ACCEL_X86_SSE | MM_ACCEL_X86_MMXEXT | MM_ACCEL_X86_SSE2 @@ -158,6 +159,9 @@ static uint32_t arch_accel (void) caps = 0; #endif /* _MSC_VER */ +#endif /* x86_64 or built-in options */ + +#ifndef __x86_64__ /* test OS support for SSE */ if (caps & MM_ACCEL_X86_SSE) { void (*old_sigill_handler)(int); -- cgit v1.2.3