From 716e7c0f0ba7c22296d84e212b75ebcb24228be2 Mon Sep 17 00:00:00 2001 From: Diego Biurrun Date: Tue, 8 Jul 2008 16:02:20 +0000 Subject: [PATCH] Remove wrong casts from vector declarations, this would cause errors when compiling with -std=gnu99. Blessed by Luca Barbato. Originally committed as revision 14129 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ppc/fdct_altivec.c | 6 +++--- libavcodec/ppc/idct_altivec.c | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/libavcodec/ppc/fdct_altivec.c b/libavcodec/ppc/fdct_altivec.c index be6e4dabb4..ed2903f163 100644 --- a/libavcodec/ppc/fdct_altivec.c +++ b/libavcodec/ppc/fdct_altivec.c @@ -58,9 +58,9 @@ static vector float fdctconsts[3] = { - (vector float)AVV( W0, W1, W2, W3 ), - (vector float)AVV( W4, W5, W6, W7 ), - (vector float)AVV( W8, W9, WA, WB ) + AVV( W0, W1, W2, W3 ), + AVV( W4, W5, W6, W7 ), + AVV( W8, W9, WA, WB ) }; #define LD_W0 vec_splat(cnsts0, 0) diff --git a/libavcodec/ppc/idct_altivec.c b/libavcodec/ppc/idct_altivec.c index 2d09ac79c3..439523473f 100644 --- a/libavcodec/ppc/idct_altivec.c +++ b/libavcodec/ppc/idct_altivec.c @@ -158,11 +158,11 @@ static const_vector_s16_t constants[5] = { - (vector_s16_t) AVV(23170, 13573, 6518, 21895, -23170, -21895, 32, 31), - (vector_s16_t) AVV(16384, 22725, 21407, 19266, 16384, 19266, 21407, 22725), - (vector_s16_t) AVV(22725, 31521, 29692, 26722, 22725, 26722, 29692, 31521), - (vector_s16_t) AVV(21407, 29692, 27969, 25172, 21407, 25172, 27969, 29692), - (vector_s16_t) AVV(19266, 26722, 25172, 22654, 19266, 22654, 25172, 26722) + AVV(23170, 13573, 6518, 21895, -23170, -21895, 32, 31), + AVV(16384, 22725, 21407, 19266, 16384, 19266, 21407, 22725), + AVV(22725, 31521, 29692, 26722, 22725, 26722, 29692, 31521), + AVV(21407, 29692, 27969, 25172, 21407, 25172, 27969, 29692), + AVV(19266, 26722, 25172, 22654, 19266, 22654, 25172, 26722) }; void idct_put_altivec(uint8_t* dest, int stride, vector_s16_t* block)