Mercurial > libavcodec.hg
diff i386/motion_est_mmx.c @ 6190:2aa536e36c89 libavcodec
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.
author | reimar |
---|---|
date | Sun, 27 Jan 2008 20:50:16 +0000 |
parents | 470601203f44 |
children | 33896780c612 |
line wrap: on
line diff
--- a/i386/motion_est_mmx.c Sun Jan 27 20:45:49 2008 +0000 +++ b/i386/motion_est_mmx.c Sun Jan 27 20:50:16 2008 +0000 @@ -24,13 +24,13 @@ #include "dsputil.h" #include "x86_cpu.h" -static const __attribute__ ((aligned(8))) uint64_t round_tab[3]={ +DECLARE_ASM_CONST(8, uint64_t, round_tab[3])={ 0x0000000000000000ULL, 0x0001000100010001ULL, 0x0002000200020002ULL, }; -static attribute_used __attribute__ ((aligned(8))) uint64_t bone= 0x0101010101010101LL; +DECLARE_ASM_CONST(8, uint64_t, bone)= 0x0101010101010101LL; static inline void sad8_1_mmx(uint8_t *blk1, uint8_t *blk2, int stride, int h) {