diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2008-01-27 20:50:16 +0000 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2008-01-27 20:50:16 +0000 |
commit | 766324fc49cf47a7bb4e57fa69778acfe738d437 (patch) | |
tree | 992f71d5e56a61f969479f46e1311badbd24cfce /libavcodec/i386/simple_idct_mmx.c | |
parent | 038f0f9b34bac9565453b226441169c79ba0a8b4 (diff) | |
download | ffmpeg-766324fc49cf47a7bb4e57fa69778acfe738d437.tar.gz |
Add and use DECLARE_ASM_CONST for constants used in assembler code.
Should make it easier to work around compilation problems with e.g. ICC.
Originally committed as revision 11641 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/i386/simple_idct_mmx.c')
-rw-r--r-- | libavcodec/i386/simple_idct_mmx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/i386/simple_idct_mmx.c b/libavcodec/i386/simple_idct_mmx.c index 5f5d8386db..059f473a0c 100644 --- a/libavcodec/i386/simple_idct_mmx.c +++ b/libavcodec/i386/simple_idct_mmx.c @@ -48,8 +48,8 @@ #define ROW_SHIFT 11 #define COL_SHIFT 20 // 6 -static const uint64_t attribute_used __attribute__((aligned(8))) wm1010= 0xFFFF0000FFFF0000ULL; -static const uint64_t attribute_used __attribute__((aligned(8))) d40000= 0x0000000000040000ULL; +DECLARE_ASM_CONST(8, uint64_t, wm1010)= 0xFFFF0000FFFF0000ULL; +DECLARE_ASM_CONST(8, uint64_t, d40000)= 0x0000000000040000ULL; DECLARE_ALIGNED(8, static const int16_t, coeffs[])= { 1<<(ROW_SHIFT-1), 0, 1<<(ROW_SHIFT-1), 0, |