Commit 8008a043 authored by Diego Biurrun's avatar Diego Biurrun

Move Apple gcc AltiVec vector declaration syntax to libavutil.

Originally committed as revision 10207 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 08f87a9c
......@@ -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
......
......@@ -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
......
......@@ -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; \
......
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