Revision 7433ca29
libavutil/mem.h | ||
---|---|---|
26 | 26 |
#ifndef FFMPEG_MEM_H |
27 | 27 |
#define FFMPEG_MEM_H |
28 | 28 |
|
29 |
#ifdef __GNUC__ |
|
30 |
#define DECLARE_ALIGNED(n,t,v) t v __attribute__ ((aligned (n))) |
|
31 | 29 |
#ifdef __ICC |
30 |
#define DECLARE_ALIGNED(n,t,v) t v __attribute__ ((aligned (n))) |
|
32 | 31 |
#define DECLARE_ASM_CONST(n,t,v) const t __attribute__ ((aligned (n))) v |
33 |
#else |
|
32 |
#elif __GNUC__ |
|
33 |
#define DECLARE_ALIGNED(n,t,v) t v __attribute__ ((aligned (n))) |
|
34 | 34 |
#define DECLARE_ASM_CONST(n,t,v) static const t v attribute_used __attribute__ ((aligned (n))) |
35 |
#endif |
|
36 | 35 |
#else |
37 | 36 |
#define DECLARE_ALIGNED(n,t,v) __declspec(align(n)) t v |
38 | 37 |
#define DECLARE_ASM_CONST(n,t,v) __declspec(align(n)) static const t v |
Also available in: Unified diff