Mercurial > libavcodec.hg
comparison ppc/gcc_fixes.h @ 2967:ef2149182f1c libavcodec
COSMETICS: Remove all trailing whitespace.
author | diego |
---|---|
date | Sat, 17 Dec 2005 18:14:38 +0000 |
parents | b370288f004d |
children | bfabfdf9ce55 |
comparison
equal
deleted
inserted
replaced
2966:564788471dd4 | 2967:ef2149182f1c |
---|---|
1 /* | 1 /* |
2 * gcc fixes for altivec. | 2 * gcc fixes for altivec. |
3 * Used to workaround broken gcc (FSF gcc-3 pre gcc-3.3) | 3 * Used to workaround broken gcc (FSF gcc-3 pre gcc-3.3) |
4 * and to stay somewhat compatible with Darwin. | 4 * and to stay somewhat compatible with Darwin. |
5 */ | 5 */ |
6 | 6 |
7 #ifndef _GCC_FIXES_ | 7 #ifndef _GCC_FIXES_ |
8 #define _GCC_FIXES_ | 8 #define _GCC_FIXES_ |
17 # else | 17 # else |
18 # define AVV | 18 # define AVV |
19 # endif | 19 # endif |
20 #else | 20 #else |
21 #define AVV(x...) {x} | 21 #define AVV(x...) {x} |
22 #if (__GNUC__ * 100 + __GNUC_MINOR__ < 303) | 22 #if (__GNUC__ * 100 + __GNUC_MINOR__ < 303) |
23 | 23 |
24 /* This code was provided to me by Bartosch Pixa | 24 /* This code was provided to me by Bartosch Pixa |
25 * as a separate header file (broken_mergel.h). | 25 * as a separate header file (broken_mergel.h). |
26 * thanks to lu_zero for the workaround. | 26 * thanks to lu_zero for the workaround. |
27 * | 27 * |
56 0x08, 0x09, 0x0a, 0x0b, 0x18, 0x19, 0x1a, 0x1b, | 56 0x08, 0x09, 0x0a, 0x0b, 0x18, 0x19, 0x1a, 0x1b, |
57 0x0c, 0x0d, 0x0e, 0x0f, 0x1c, 0x1d, 0x1e, 0x1f | 57 0x0c, 0x0d, 0x0e, 0x0f, 0x1c, 0x1d, 0x1e, 0x1f |
58 }; | 58 }; |
59 return vec_perm (A, B, lowword); | 59 return vec_perm (A, B, lowword); |
60 } | 60 } |
61 /*#define ff_vmrglb ff_vmrglb | 61 /*#define ff_vmrglb ff_vmrglb |
62 #define ff_vmrglh ff_vmrglh | 62 #define ff_vmrglh ff_vmrglh |
63 #define ff_vmrglw ff_vmrglw | 63 #define ff_vmrglw ff_vmrglw |
64 */ | 64 */ |
65 #undef vec_mergel | 65 #undef vec_mergel |
66 | 66 |
67 #define vec_mergel(a1, a2) \ | 67 #define vec_mergel(a1, a2) \ |
68 __ch (__bin_args_eq (vector signed char, (a1), vector signed char, (a2)), \ | 68 __ch (__bin_args_eq (vector signed char, (a1), vector signed char, (a2)), \ |