Mercurial > libavcodec.hg
comparison ppc/fdct_altivec.c @ 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 | 0133a6c7480f |
children | bcaba3f602d3 |
comparison
equal
deleted
inserted
replaced
7372:e97d0795ee70 | 7373:266d4949aa15 |
---|---|
56 #define WA (SQRT_2 * (-C3 - C5)) | 56 #define WA (SQRT_2 * (-C3 - C5)) |
57 #define WB (SQRT_2 * ( C5 - C3)) | 57 #define WB (SQRT_2 * ( C5 - C3)) |
58 | 58 |
59 | 59 |
60 static vector float fdctconsts[3] = { | 60 static vector float fdctconsts[3] = { |
61 AVV( W0, W1, W2, W3 ), | 61 { W0, W1, W2, W3 }, |
62 AVV( W4, W5, W6, W7 ), | 62 { W4, W5, W6, W7 }, |
63 AVV( W8, W9, WA, WB ) | 63 { W8, W9, WA, WB } |
64 }; | 64 }; |
65 | 65 |
66 #define LD_W0 vec_splat(cnsts0, 0) | 66 #define LD_W0 vec_splat(cnsts0, 0) |
67 #define LD_W1 vec_splat(cnsts0, 1) | 67 #define LD_W1 vec_splat(cnsts0, 1) |
68 #define LD_W2 vec_splat(cnsts0, 2) | 68 #define LD_W2 vec_splat(cnsts0, 2) |