diff options
author | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-06-09 12:56:14 +0200 |
---|---|---|
committer | Diego 'Flameeyes' Pettenò <flameeyes@gmail.com> | 2007-06-09 12:56:14 +0200 |
commit | 13cb1497c43a5bffc29ca27933c37c5e3e898d94 (patch) | |
tree | b768c3ad0514c5c7dc3def2b59afe6387789fae3 /src | |
parent | 2c5cfbc4e033c3959f5e3c9707b71044adadbd55 (diff) | |
download | xine-lib-13cb1497c43a5bffc29ca27933c37c5e3e898d94.tar.gz xine-lib-13cb1497c43a5bffc29ca27933c37c5e3e898d94.tar.bz2 |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/xine-utils/cpu_accel.c | 6 |
1 files changed, 5 insertions, 1 deletions
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); |