Mercurial > libavcodec.hg
comparison ppc/gcc_fixes.h @ 5580:9f573d1246bb libavcodec
Move Apple gcc AltiVec vector declaration syntax to libavutil.
author | diego |
---|---|
date | Fri, 24 Aug 2007 15:04:00 +0000 |
parents | 204273dd0349 |
children | 7175313dac36 |
comparison
equal
deleted
inserted
replaced
5579:1d68a08be2f9 | 5580:9f573d1246bb |
---|---|
26 #ifdef HAVE_ALTIVEC_H | 26 #ifdef HAVE_ALTIVEC_H |
27 #include <altivec.h> | 27 #include <altivec.h> |
28 #endif | 28 #endif |
29 | 29 |
30 #ifdef SYS_DARWIN | 30 #ifdef SYS_DARWIN |
31 # ifndef __MWERKS__ | 31 # ifdef __MWERKS__ |
32 # define AVV(x...) (x) | |
33 # else | |
34 # define AVV | 32 # define AVV |
35 # endif | 33 # endif |
36 #define REG_v(a) asm ( #a ) | 34 #define REG_v(a) asm ( #a ) |
37 #else | 35 #else |
38 | |
39 #define AVV(x...) {x} | |
40 | 36 |
41 #if (__GNUC__ < 4) | 37 #if (__GNUC__ < 4) |
42 # define REG_v(a) | 38 # define REG_v(a) |
43 #else | 39 #else |
44 # define REG_v(a) asm ( #a ) | 40 # define REG_v(a) asm ( #a ) |