aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/ppc/gcc_fixes.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2003-06-29 00:39:57 +0000
committerMichael Niedermayer <michaelni@gmx.at>2003-06-29 00:39:57 +0000
commita4adb60858f1fa0b35b08576ea34e531f0f83459 (patch)
tree95fd262e09e47e01dc4ccfc549a258a2c10e2d8f /libavcodec/ppc/gcc_fixes.h
parent2c094d6338c50a24d1b5df037a07040b59d4d60f (diff)
downloadffmpeg-a4adb60858f1fa0b35b08576ea34e531f0f83459.tar.gz
PPC970 patch + cpu-specific tuning support by (Romain Dolbeau <dolbeau at irisa dot fr>)
Originally committed as revision 1997 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ppc/gcc_fixes.h')
-rw-r--r--libavcodec/ppc/gcc_fixes.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/libavcodec/ppc/gcc_fixes.h b/libavcodec/ppc/gcc_fixes.h
index 855a5b4f7b..653378d5bc 100644
--- a/libavcodec/ppc/gcc_fixes.h
+++ b/libavcodec/ppc/gcc_fixes.h
@@ -13,9 +13,15 @@
#ifdef CONFIG_DARWIN
#define AVV(x...) (x)
+/* The Apple assembler shipped w/ gcc-3.3 knows about DCBZL, previous assemblers don't
+ We assume here that the Darwin GCC is from Apple.... */
+#if (__GNUC__ * 100 + __GNUC_MINOR__ < 303)
+#define NO_DCBZL
+#endif
#else
#define AVV(x...) {x}
-
+/* I don't think any non-Apple assembler knows about DCBZL */
+#define NO_DCBZL
#if (__GNUC__ * 100 + __GNUC_MINOR__ < 303)
/* This code was provided to me by Bartosch Pixa