Mercurial > libavcodec.hg
diff 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 |
line wrap: on
line diff
--- a/ppc/fdct_altivec.c Thu Jul 24 04:29:23 2008 +0000 +++ b/ppc/fdct_altivec.c Thu Jul 24 10:53:32 2008 +0000 @@ -58,9 +58,9 @@ static vector float fdctconsts[3] = { - AVV( W0, W1, W2, W3 ), - AVV( W4, W5, W6, W7 ), - AVV( W8, W9, WA, WB ) + { W0, W1, W2, W3 }, + { W4, W5, W6, W7 }, + { W8, W9, WA, WB } }; #define LD_W0 vec_splat(cnsts0, 0)