Browse Source

Move Apple gcc AltiVec vector declaration syntax to libavutil.

Originally committed as revision 10207 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Diego Biurrun 18 years ago
parent
commit
8008a04325
3 changed files with 8 additions and 11 deletions
  1. +1
    -5
      libavcodec/ppc/gcc_fixes.h
  2. +7
    -0
      libavutil/internal.h
  3. +0
    -6
      libpostproc/postprocess_altivec_template.c

+ 1
- 5
libavcodec/ppc/gcc_fixes.h View File

@@ -28,16 +28,12 @@
#endif #endif


#ifdef SYS_DARWIN #ifdef SYS_DARWIN
# ifndef __MWERKS__
# define AVV(x...) (x)
# else
# ifdef __MWERKS__
# 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


+ 7
- 0
libavutil/internal.h View File

@@ -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


+ 0
- 6
libpostproc/postprocess_altivec_template.c View File

@@ -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; \


Loading…
Cancel
Save