comparison dct-test.c @ 6544:8a059debc2ba libavcodec

Altivec and SSE2 require 16-byte alignment, so make sure they get it patch by Alexander Strange %astrange A ithinksw P com%
author gpoirier
date Sun, 30 Mar 2008 10:30:33 +0000
parents 948d9453432b
children 0ec61ed36c29
comparison
equal deleted inserted replaced
6543:948d9453432b 6544:8a059debc2ba
167 idct_mmx_perm[i] = (i & 0x38) | ((i & 6) >> 1) | ((i & 1) << 2); 167 idct_mmx_perm[i] = (i & 0x38) | ((i & 6) >> 1) | ((i & 1) << 2);
168 // idct_simple_mmx_perm[i] = simple_block_permute_op(i); 168 // idct_simple_mmx_perm[i] = simple_block_permute_op(i);
169 } 169 }
170 } 170 }
171 171
172 static DCTELEM block[64] __attribute__ ((aligned (8))); 172 static DCTELEM block[64] __attribute__ ((aligned (16)));
173 static DCTELEM block1[64] __attribute__ ((aligned (8))); 173 static DCTELEM block1[64] __attribute__ ((aligned (8)));
174 static DCTELEM block_org[64] __attribute__ ((aligned (8))); 174 static DCTELEM block_org[64] __attribute__ ((aligned (8)));
175 175
176 void dct_error(const char *name, int is_idct, 176 void dct_error(const char *name, int is_idct,
177 void (*fdct_func)(DCTELEM *block), 177 void (*fdct_func)(DCTELEM *block),