Commit 80b3c09b authored by Christophe Massiot's avatar Christophe Massiot

* libmpeg2: Make some MMX optim available on x86_64, patch by Diego Biurrun

parent 0be27fbd
......@@ -29,7 +29,7 @@
#include "attributes.h"
#include "mpeg2_internal.h"
#ifdef ARCH_X86
#if defined(ARCH_X86) || defined(ARCH_X86_64)
static inline uint32_t arch_accel (uint32_t accel)
{
if (accel & (MPEG2_ACCEL_X86_3DNOW | MPEG2_ACCEL_X86_MMXEXT))
......@@ -125,7 +125,7 @@ static inline uint32_t arch_accel (uint32_t accel)
return accel;
}
#endif /* ARCH_X86 */
#endif /* ARCH_X86 || ARCH_X86_64 */
#if defined(ACCEL_DETECT) && (defined(ARCH_PPC) || defined(ARCH_SPARC))
#include <signal.h>
......@@ -253,7 +253,7 @@ static inline uint32_t arch_accel (uint32_t accel)
uint32_t mpeg2_detect_accel (uint32_t accel)
{
#if defined (ARCH_X86) || defined (ARCH_PPC) || defined (ARCH_ALPHA) || defined (ARCH_SPARC)
#if defined (ARCH_X86) || defined (ARCH_X86_64) || defined (ARCH_PPC) || defined (ARCH_ALPHA) || defined (ARCH_SPARC)
accel = arch_accel (accel);
#endif
return accel;
......
......@@ -29,14 +29,14 @@
#include "mpeg2.h"
#include "attributes.h"
#include "mpeg2_internal.h"
#ifdef ARCH_X86
#if defined(ARCH_X86) || defined(ARCH_X86_64)
#include "mmx.h"
#endif
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 ();
......@@ -115,7 +115,7 @@ static void state_restore_altivec (cpu_state_t * state)
void mpeg2_cpu_state_init (uint32_t accel)
{
#ifdef ARCH_X86
#if defined(ARCH_X86) || defined(ARCH_X86_64)
if (accel & MPEG2_ACCEL_X86_MMX) {
mpeg2_cpu_state_restore = state_restore_mmx;
}
......
......@@ -23,7 +23,7 @@
#include "config.h"
#ifdef ARCH_X86
#if defined(ARCH_X86) || defined(ARCH_X86_64)
#include <inttypes.h>
......
......@@ -23,7 +23,7 @@
#include "config.h"
#ifdef ARCH_X86
#if defined(ARCH_X86) || defined(ARCH_X86_64)
#include <inttypes.h>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment