diff options
author | Diego Biurrun <diego@biurrun.de> | 2007-08-24 15:04:00 +0000 |
---|---|---|
committer | Diego Biurrun <diego@biurrun.de> | 2007-08-24 15:04:00 +0000 |
commit | 8008a04325236d6b6e0b3ae1c9c2a28c68668696 (patch) | |
tree | 34a6c8a4f9e48b5dda8dec84789e86bf60a10428 | |
parent | 08f87a9c99b4625135f31bb25e018ba5505d7f07 (diff) | |
download | ffmpeg-streaming-8008a04325236d6b6e0b3ae1c9c2a28c68668696.zip ffmpeg-streaming-8008a04325236d6b6e0b3ae1c9c2a28c68668696.tar.gz |
Move Apple gcc AltiVec vector declaration syntax to libavutil.
Originally committed as revision 10207 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/ppc/gcc_fixes.h | 6 | ||||
-rw-r--r-- | libavutil/internal.h | 7 | ||||
-rw-r--r-- | libpostproc/postprocess_altivec_template.c | 6 |
3 files changed, 8 insertions, 11 deletions
diff --git a/libavcodec/ppc/gcc_fixes.h b/libavcodec/ppc/gcc_fixes.h index 50d78ee..9814c3c 100644 --- a/libavcodec/ppc/gcc_fixes.h +++ b/libavcodec/ppc/gcc_fixes.h @@ -28,16 +28,12 @@ #endif #ifdef SYS_DARWIN -# ifndef __MWERKS__ -# define AVV(x...) (x) -# else +# ifdef __MWERKS__ # define AVV # endif #define REG_v(a) asm ( #a ) #else -#define AVV(x...) {x} - #if (__GNUC__ < 4) # define REG_v(a) #else diff --git a/libavutil/internal.h b/libavutil/internal.h index 58c5aa8..7023016 100644 --- a/libavutil/internal.h +++ b/libavutil/internal.h @@ -50,6 +50,13 @@ #endif #endif +/* Use Apple-specific AltiVec syntax for vector declarations when necessary. */ +#ifdef __APPLE_CC__ +#define AVV(x...) (x) +#else +#define AVV(x...) {x} +#endif + #ifndef M_PI #define M_PI 3.14159265358979323846 #endif diff --git a/libpostproc/postprocess_altivec_template.c b/libpostproc/postprocess_altivec_template.c index 332c5bb..0f2db93 100644 --- a/libpostproc/postprocess_altivec_template.c +++ b/libpostproc/postprocess_altivec_template.c @@ -22,12 +22,6 @@ #include "avutil.h" -#ifdef SYS_DARWIN -#define AVV(x...) (x) -#else -#define AVV(x...) {x} -#endif - #define ALTIVEC_TRANSPOSE_8x8_SHORT(src_a,src_b,src_c,src_d,src_e,src_f,src_g,src_h) \ do { \ __typeof__(src_a) tempA1, tempB1, tempC1, tempD1; \ |