#ifdef simplification and higher consistency

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13197 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2004-08-30 00:42:27 +00:00
parent 02cf92ad78
commit 4918de6c09
1 changed files with 2 additions and 6 deletions

View File

@ -42,24 +42,20 @@ void mpeg2_mc_init (uint32_t accel)
mpeg2_mc = mpeg2_mc_mmx;
else
#endif
#ifdef ARCH_PPC
#ifdef HAVE_ALTIVEC
#if defined(ARCH_PPC) && defined(HAVE_ALTIVEC)
if (accel & MPEG2_ACCEL_PPC_ALTIVEC)
mpeg2_mc = mpeg2_mc_altivec;
else
#endif
#endif
#ifdef ARCH_ALPHA
if (accel & MPEG2_ACCEL_ALPHA)
mpeg2_mc = mpeg2_mc_alpha;
else
#endif
#ifdef ARCH_SPARC
#ifdef HAVE_VIS
#if defined(ARCH_SPARC) && defined(HAVE_VIS)
if (accel & MPEG2_ACCEL_SPARC_VIS)
mpeg2_mc = mpeg2_mc_vis;
else
#endif
#endif
mpeg2_mc = mpeg2_mc_c;
}