Commit aba46040 authored by diego's avatar diego

Move Apple gcc AltiVec vector declaration syntax to libavutil.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@10207 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4a034fe7
...@@ -28,16 +28,12 @@ ...@@ -28,16 +28,12 @@
#endif #endif
#ifdef SYS_DARWIN #ifdef SYS_DARWIN
# ifndef __MWERKS__ # ifdef __MWERKS__
# define AVV(x...) (x)
# else
# define AVV # define AVV
# endif # endif
#define REG_v(a) asm ( #a ) #define REG_v(a) asm ( #a )
#else #else
#define AVV(x...) {x}
#if (__GNUC__ < 4) #if (__GNUC__ < 4)
# define REG_v(a) # define REG_v(a)
#else #else
......
...@@ -50,6 +50,13 @@ ...@@ -50,6 +50,13 @@
#endif #endif
#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 #ifndef M_PI
#define M_PI 3.14159265358979323846 #define M_PI 3.14159265358979323846
#endif #endif
......
...@@ -22,12 +22,6 @@ ...@@ -22,12 +22,6 @@
#include "avutil.h" #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) \ #define ALTIVEC_TRANSPOSE_8x8_SHORT(src_a,src_b,src_c,src_d,src_e,src_f,src_g,src_h) \
do { \ do { \
__typeof__(src_a) tempA1, tempB1, tempC1, tempD1; \ __typeof__(src_a) tempA1, tempB1, tempC1, tempD1; \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment