comparison ppc/util_altivec.h @ 7373:266d4949aa15 libavcodec

Remove AltiVec vector declaration compiler compatibility macros. The original problem was that FSF and Apple gcc used a different syntax for vector declarations, i.e. {} vs. (). Nowadays Apple gcc versions support the standard {} syntax and versions that support {} are available on all relevant Mac OS X versions. Thus the greater compatibility is no longer worth cluttering the code with macros.
author diego
date Thu, 24 Jul 2008 10:53:32 +0000
parents 71d8c1fd3d88
children c4a4495715dd
comparison
equal deleted inserted replaced
7372:e97d0795ee70 7373:266d4949aa15
41 #define WORD_s0 0x10,0x11,0x12,0x13 41 #define WORD_s0 0x10,0x11,0x12,0x13
42 #define WORD_s1 0x14,0x15,0x16,0x17 42 #define WORD_s1 0x14,0x15,0x16,0x17
43 #define WORD_s2 0x18,0x19,0x1a,0x1b 43 #define WORD_s2 0x18,0x19,0x1a,0x1b
44 #define WORD_s3 0x1c,0x1d,0x1e,0x1f 44 #define WORD_s3 0x1c,0x1d,0x1e,0x1f
45 45
46 #define vcprm(a,b,c,d) (const vector unsigned char)AVV(WORD_ ## a, WORD_ ## b, WORD_ ## c, WORD_ ## d) 46 #define vcprm(a,b,c,d) (const vector unsigned char){WORD_ ## a, WORD_ ## b, WORD_ ## c, WORD_ ## d}
47 #define vcii(a,b,c,d) (const vector float)AVV(FLOAT_ ## a, FLOAT_ ## b, FLOAT_ ## c, FLOAT_ ## d) 47 #define vcii(a,b,c,d) (const vector float){FLOAT_ ## a, FLOAT_ ## b, FLOAT_ ## c, FLOAT_ ## d}
48 48
49 // vcprmle is used to keep the same index as in the SSE version. 49 // vcprmle is used to keep the same index as in the SSE version.
50 // it's the same as vcprm, with the index inversed 50 // it's the same as vcprm, with the index inversed
51 // ('le' is Little Endian) 51 // ('le' is Little Endian)
52 #define vcprmle(a,b,c,d) vcprm(d,c,b,a) 52 #define vcprmle(a,b,c,d) vcprm(d,c,b,a)