Mercurial > libavcodec.hg
comparison ppc/gcc_fixes.h @ 2979:bfabfdf9ce55 libavcodec
COSMETICS: tabs --> spaces, some prettyprinting
author | diego |
---|---|
date | Thu, 22 Dec 2005 01:10:11 +0000 |
parents | ef2149182f1c |
children | 0b482ccd7f0e |
comparison
equal
deleted
inserted
replaced
2978:403183bbb505 | 2979:bfabfdf9ce55 |
---|---|
28 * See this mail for more information: | 28 * See this mail for more information: |
29 * http://gcc.gnu.org/ml/gcc/2003-04/msg00967.html | 29 * http://gcc.gnu.org/ml/gcc/2003-04/msg00967.html |
30 */ | 30 */ |
31 | 31 |
32 static inline vector signed char ff_vmrglb (vector signed char const A, | 32 static inline vector signed char ff_vmrglb (vector signed char const A, |
33 vector signed char const B) | 33 vector signed char const B) |
34 { | 34 { |
35 static const vector unsigned char lowbyte = { | 35 static const vector unsigned char lowbyte = { |
36 0x08, 0x18, 0x09, 0x19, 0x0a, 0x1a, 0x0b, 0x1b, | 36 0x08, 0x18, 0x09, 0x19, 0x0a, 0x1a, 0x0b, 0x1b, |
37 0x0c, 0x1c, 0x0d, 0x1d, 0x0e, 0x1e, 0x0f, 0x1f | 37 0x0c, 0x1c, 0x0d, 0x1d, 0x0e, 0x1e, 0x0f, 0x1f |
38 }; | 38 }; |
39 return vec_perm (A, B, lowbyte); | 39 return vec_perm (A, B, lowbyte); |
40 } | 40 } |
41 | 41 |
42 static inline vector signed short ff_vmrglh (vector signed short const A, | 42 static inline vector signed short ff_vmrglh (vector signed short const A, |
43 vector signed short const B) | 43 vector signed short const B) |
44 { | 44 { |
45 static const vector unsigned char lowhalf = { | 45 static const vector unsigned char lowhalf = { |
46 0x08, 0x09, 0x18, 0x19, 0x0a, 0x0b, 0x1a, 0x1b, | 46 0x08, 0x09, 0x18, 0x19, 0x0a, 0x0b, 0x1a, 0x1b, |
47 0x0c, 0x0d, 0x1c, 0x1d, 0x0e, 0x0f, 0x1e, 0x1f | 47 0x0c, 0x0d, 0x1c, 0x1d, 0x0e, 0x0f, 0x1e, 0x1f |
48 }; | 48 }; |
49 return vec_perm (A, B, lowhalf); | 49 return vec_perm (A, B, lowhalf); |
50 } | 50 } |
51 | 51 |
52 static inline vector signed int ff_vmrglw (vector signed int const A, | 52 static inline vector signed int ff_vmrglw (vector signed int const A, |
53 vector signed int const B) | 53 vector signed int const B) |
54 { | 54 { |
55 static const vector unsigned char lowword = { | 55 static const vector unsigned char lowword = { |
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 |