changeset 21377:6053051bdc75

add missing r15484
author henry
date Wed, 29 Nov 2006 20:46:27 +0000
parents f57f9423d6b8
children be7173f15d27
files libmpeg2/libmpeg-0.4.0.diff
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpeg2/libmpeg-0.4.0.diff	Wed Nov 29 17:58:39 2006 +0000
+++ b/libmpeg2/libmpeg-0.4.0.diff	Wed Nov 29 20:46:27 2006 +0000
@@ -65,6 +65,20 @@
  #include <signal.h>
  #include <setjmp.h>
  
+@@ -166,10 +166,10 @@
+ 
+     canjump = 1;
+ 
+-#ifdef HAVE_ALTIVEC_H	/* gnu */
+-#define VAND(a,b,c) "vand " #a "," #b "," #c "\n\t"
+-#else			/* apple */
++#if defined( __APPLE_CC__ ) && defined( __APPLE_ALTIVEC__ ) /* apple */
+ #define VAND(a,b,c) "vand v" #a ",v" #b ",v" #c "\n\t"
++#else			/* gnu */
++#define VAND(a,b,c) "vand " #a "," #b "," #c "\n\t"
+ #endif
+     asm volatile ("mtspr 256, %0\n\t"
+ 		  VAND (0, 0, 0)
 @@ -195,6 +222,7 @@
  #ifdef ARCH_ALPHA
  static inline uint32_t arch_accel (void)