diff options
author | Michael Roitzsch <mroi@users.sourceforge.net> | 2003-08-25 14:32:37 +0000 |
---|---|---|
committer | Michael Roitzsch <mroi@users.sourceforge.net> | 2003-08-25 14:32:37 +0000 |
commit | 92939d3b6df9165df0d7a25c4214c32401d9131d (patch) | |
tree | 278e8acebbe8f843693d5227906ac6d94dd635ba /src/xine-utils/cpu_accel.c | |
parent | 8fdcd5444ac7ecd39f7b2323f8afb1440c3b6439 (diff) | |
download | xine-lib-92939d3b6df9165df0d7a25c4214c32401d9131d.tar.gz xine-lib-92939d3b6df9165df0d7a25c4214c32401d9131d.tar.bz2 |
AMD64 support patch by Adrian Schroeter
CVS patchset: 5308
CVS date: 2003/08/25 14:32:37
Diffstat (limited to 'src/xine-utils/cpu_accel.c')
-rw-r--r-- | src/xine-utils/cpu_accel.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/xine-utils/cpu_accel.c b/src/xine-utils/cpu_accel.c index bd207fd91..f4f083f70 100644 --- a/src/xine-utils/cpu_accel.c +++ b/src/xine-utils/cpu_accel.c @@ -34,7 +34,18 @@ #define LOG */ -#ifdef ARCH_X86 +#if defined(ARCH_X86) || defined(ARCH_X86_64) +#if defined __x86_64__ +static uint32_t arch_accel (void) +{ + uint32_t caps; + /* 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; + + return caps; +} +#else static uint32_t arch_accel (void) { #ifndef _MSC_VER @@ -118,6 +129,7 @@ static uint32_t arch_accel (void) return 0; #endif } +#endif /* x86_64 */ static jmp_buf sigill_return; @@ -170,7 +182,7 @@ uint32_t xine_mm_accel (void) if (!initialized) { accel = arch_accel (); -#ifdef ARCH_X86 +#if defined(ARCH_X86) || defined(ARCH_X86_64) #ifndef _MSC_VER /* test OS support for SSE */ |