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 /libavutil | |
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 'libavutil')
-rw-r--r-- | libavutil/mem.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavutil/mem.h b/libavutil/mem.h index 86953531d5..b9ff44d4f1 100644 --- a/libavutil/mem.h +++ b/libavutil/mem.h @@ -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 /** |