# HG changeset patch # User alex # Date 1088246155 0 # Node ID 770743eb4329de6be3c6bef6c40aec9773bef875 # Parent 8bf89660fffecc5043e1d6a51f59fbaa681df856 altivec workaround diff -r 8bf89660fffe -r 770743eb4329 wmadec.c --- a/wmadec.c Sat Jun 26 10:09:58 2004 +0000 +++ b/wmadec.c Sat Jun 26 10:35:55 2004 +0000 @@ -702,7 +702,12 @@ int n, v, a, ch, code, bsize; int coef_nb_bits, total_gain, parse_exponents; float window[BLOCK_MAX_SIZE * 2]; +// XXX: FIXME!! there's a bug somewhere which makes this mandatory under altivec +#ifdef HAVE_ALTIVEC + volatile int nb_coefs[MAX_CHANNELS] __attribute__((aligned(16))); +#else int nb_coefs[MAX_CHANNELS]; +#endif float mdct_norm; #ifdef TRACE