Mercurial > libavutil.hg
comparison internal.h @ 745:59c9e9a0bc0a libavutil
Do not throw compiler error if asm code needs alignment, but we do not know
how to do it for this compiler. This removes a dependency of config.h on the
DECLARE_* macros.
author | ramiro |
---|---|
date | Thu, 09 Jul 2009 02:18:29 +0000 |
parents | 1091b120412e |
children | 3b90ae5577ad |
comparison
equal
deleted
inserted
replaced
744:059c6e697629 | 745:59c9e9a0bc0a |
---|---|
265 #define DECLARE_ALIGNED(n,t,v) t v __attribute__ ((aligned (n))) | 265 #define DECLARE_ALIGNED(n,t,v) t v __attribute__ ((aligned (n))) |
266 #define DECLARE_ASM_CONST(n,t,v) static const t v attribute_used __attribute__ ((aligned (n))) | 266 #define DECLARE_ASM_CONST(n,t,v) static const t v attribute_used __attribute__ ((aligned (n))) |
267 #elif defined(_MSC_VER) | 267 #elif defined(_MSC_VER) |
268 #define DECLARE_ALIGNED(n,t,v) __declspec(align(n)) t v | 268 #define DECLARE_ALIGNED(n,t,v) __declspec(align(n)) t v |
269 #define DECLARE_ASM_CONST(n,t,v) __declspec(align(n)) static const t v | 269 #define DECLARE_ASM_CONST(n,t,v) __declspec(align(n)) static const t v |
270 #elif HAVE_INLINE_ASM | |
271 #error The asm code needs alignment, but we do not know how to do it for this compiler. | |
272 #else | 270 #else |
273 #define DECLARE_ALIGNED(n,t,v) t v | 271 #define DECLARE_ALIGNED(n,t,v) t v |
274 #define DECLARE_ASM_CONST(n,t,v) static const t v | 272 #define DECLARE_ASM_CONST(n,t,v) static const t v |
275 #endif | 273 #endif |
276 | 274 |