Mercurial > libavcodec.hg
diff vp3.c @ 3089:072dbc669253 libavcodec
MSVC-compatible __align8/__align16 declaration
patch by Steve Lhomme, steve .dot. lhomme .at. free .dot. fr
| author | diego |
|---|---|
| date | Sun, 05 Feb 2006 13:35:17 +0000 |
| parents | 0b546eab515d |
| children | ede5c3c0a0eb |
line wrap: on
line diff
--- a/vp3.c Sun Feb 05 10:16:20 2006 +0000 +++ b/vp3.c Sun Feb 05 13:35:17 2006 +0000 @@ -285,9 +285,9 @@ /* these arrays need to be on 16-byte boundaries since SSE2 operations * index into them */ - int16_t __align16 intra_y_dequant[64]; - int16_t __align16 intra_c_dequant[64]; - int16_t __align16 inter_dequant[64]; + DECLARE_ALIGNED_16(int16_t, intra_y_dequant[64]); + DECLARE_ALIGNED_16(int16_t, intra_c_dequant[64]); + DECLARE_ALIGNED_16(int16_t, inter_dequant[64]); /* This table contains superblock_count * 16 entries. Each set of 16 * numbers corresponds to the fragment indices 0..15 of the superblock. @@ -1711,7 +1711,7 @@ int m, n; int i; /* indicates current fragment */ int16_t *dequantizer; - DCTELEM __align16 block[64]; + DECLARE_ALIGNED_16(DCTELEM, block[64]); unsigned char *output_plane; unsigned char *last_plane; unsigned char *golden_plane;
