Mercurial > libavutil.hg
changeset 434:61beff437735 libavutil
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 | 0839746f3fcf |
children | 00b366335a60 |
files | mem.h |
diffstat | 1 files changed, 2 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mem.h Wed Jan 23 21:03:21 2008 +0000 +++ b/mem.h Sun Jan 27 20:50:16 2008 +0000 @@ -28,8 +28,10 @@ #ifdef __GNUC__ #define DECLARE_ALIGNED(n,t,v) t v __attribute__ ((aligned (n))) + #define DECLARE_ASM_CONST(n,t,v) static const t v attribute_used __attribute__ ((aligned (n))) #else #define DECLARE_ALIGNED(n,t,v) __declspec(align(n)) t v + #define DECLARE_ASM_CONST(n,t,v) __declspec(align(n)) static const t v #endif /**