changeset 10269:217eb10b2f2d

libmpeg2-altivec patch by Magnus Damm <damm@opensource.se>: Only use Altivec if enabled with configure.
author arpi
date Mon, 09 Jun 2003 12:11:30 +0000
parents f486ad4016ad
children aeea70a0e72c
files libmpeg2/idct.c libmpeg2/motion_comp.c
diffstat 2 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpeg2/idct.c	Mon Jun 09 12:11:09 2003 +0000
+++ b/libmpeg2/idct.c	Mon Jun 09 12:11:30 2003 +0000
@@ -241,12 +241,14 @@
     } else
 #endif
 #ifdef ARCH_PPC
+#ifdef HAVE_ALTIVEC
     if (accel & MPEG2_ACCEL_PPC_ALTIVEC) {
 	mpeg2_idct_copy = mpeg2_idct_copy_altivec;
 	mpeg2_idct_add = mpeg2_idct_add_altivec;
 	mpeg2_idct_altivec_init ();
     } else
 #endif
+#endif
 #ifdef ARCH_ALPHA
     if (accel & MPEG2_ACCEL_ALPHA_MVI) {
 	mpeg2_idct_copy = mpeg2_idct_copy_mvi;
--- a/libmpeg2/motion_comp.c	Mon Jun 09 12:11:09 2003 +0000
+++ b/libmpeg2/motion_comp.c	Mon Jun 09 12:11:30 2003 +0000
@@ -42,10 +42,12 @@
     else
 #endif
 #ifdef ARCH_PPC
+#ifdef 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;