Mercurial > libavcodec.hg
diff i386/dsputil_mmx.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 | 2d35fb3cb940 |
line wrap: on
line diff
--- a/i386/dsputil_mmx.c Sun Feb 05 10:16:20 2006 +0000 +++ b/i386/dsputil_mmx.c Sun Feb 05 13:35:17 2006 +0000 @@ -303,7 +303,7 @@ :"memory"); } -static const unsigned char __align8 vector128[8] = +static DECLARE_ALIGNED_8(const unsigned char, vector128[8]) = { 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80 }; void put_signed_pixels_clamped_mmx(const DCTELEM *block, uint8_t *pixels, int line_size) @@ -1546,7 +1546,7 @@ "movq "#d", "#o"+48(%1) \n\t"\ static int hadamard8_diff_mmx(void *s, uint8_t *src1, uint8_t *src2, int stride, int h){ - uint64_t temp[16] __align8; + DECLARE_ALIGNED_8(uint64_t, temp[16]); int sum=0; assert(h==8); @@ -1633,7 +1633,7 @@ } static int hadamard8_diff_mmx2(void *s, uint8_t *src1, uint8_t *src2, int stride, int h){ - uint64_t temp[16] __align8; + DECLARE_ALIGNED_8(uint64_t, temp[16]); int sum=0; assert(h==8);