From f99eae5c09b9ebbc16c0bd5e2a5dda8e2874d81f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Diego=20=27Flameeyes=27=20Petten=C3=B2?= Date: Sun, 8 Apr 2007 14:49:15 +0200 Subject: Beside the name, constants can't be marked const or gcc miscompiles the Altivec code. --- src/libmpeg2/idct_altivec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libmpeg2/idct_altivec.c b/src/libmpeg2/idct_altivec.c index 895984c45..ed8b58cfd 100644 --- a/src/libmpeg2/idct_altivec.c +++ b/src/libmpeg2/idct_altivec.c @@ -148,7 +148,7 @@ #define VEC_S16(a,b,c,d,e,f,g,h) (vector_s16_t) {a, b, c, d, e, f, g, h} #endif -static const vector_s16_t constants[5] = { +static vector_s16_t constants[5] = { VEC_S16(23170, 13573, 6518, 21895, -23170, -21895, 32, 31), VEC_S16(16384, 22725, 21407, 19266, 16384, 19266, 21407, 22725), VEC_S16(22725, 31521, 29692, 26722, 22725, 26722, 29692, 31521), -- cgit v1.2.3