diff ppc/dsputil_altivec.c @ 1981:1ba490d60bb9 libavcodec

disable hadamard for gcc below 3.3 - better fix awaited
author alex
date Mon, 26 Apr 2004 08:51:56 +0000
parents a6972a4f90c8
children 31bf68b1792b
line wrap: on
line diff
--- a/ppc/dsputil_altivec.c	Mon Apr 26 08:48:28 2004 +0000
+++ b/ppc/dsputil_altivec.c	Mon Apr 26 08:51:56 2004 +0000
@@ -1302,6 +1302,7 @@
 #endif /* ALTIVEC_USE_REFERENCE_C_CODE */
 }
 
+#if (__GNUC__ * 100 + __GNUC_MINOR__ >= 330)
 int hadamard8_diff8x8_altivec(/*MpegEncContext*/ void *s, uint8_t *dst, uint8_t *src, int stride, int h){
 POWERPC_PERF_DECLARE(altivec_hadamard8_diff8x8_num, 1);
   int sum;
@@ -1611,6 +1612,7 @@
 POWERPC_PERF_STOP_COUNT(altivec_hadamard8_diff16_num, 1);
   return score;
 }
+#endif
 
 int has_altivec(void)
 {