diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2008-01-27 23:50:16 +0300 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2008-01-27 23:50:16 +0300 |
commit | 766324fc49cf47a7bb4e57fa69778acfe738d437 (patch) | |
tree | 992f71d5e56a61f969479f46e1311badbd24cfce /libavutil/mem.h | |
parent | 038f0f9b34bac9565453b226441169c79ba0a8b4 (diff) |
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/mem.h')
-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 /** |