summaryrefslogtreecommitdiff
path: root/src/libmpeg2/cpu_state.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libmpeg2/cpu_state.c')
-rw-r--r--src/libmpeg2/cpu_state.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libmpeg2/cpu_state.c b/src/libmpeg2/cpu_state.c
index 433a85b85..07b4c5b7e 100644
--- a/src/libmpeg2/cpu_state.c
+++ b/src/libmpeg2/cpu_state.c
@@ -32,7 +32,7 @@
void (* mpeg2_cpu_state_save) (cpu_state_t * state) = NULL;
void (* mpeg2_cpu_state_restore) (cpu_state_t * state) = NULL;
-#ifdef ARCH_X86
+#if defined(ARCH_X86) || defined(ARCH_X86_64)
static void state_restore_mmx (cpu_state_t * state)
{
emms ();
@@ -168,7 +168,7 @@ static void state_restore_altivec (cpu_state_t * state)
void mpeg2_cpu_state_init (uint32_t mm_accel)
{
-#ifdef ARCH_X86
+#if defined(ARCH_X86) || defined(ARCH_X86_64)
if (mm_accel & MM_ACCEL_X86_MMX) {
mpeg2_cpu_state_restore = state_restore_mmx;
}