Revision 16c2e214 libavutil/mem.h

View differences:

libavutil/mem.h
28 28

  
29 29
#include "common.h"
30 30

  
31
#if defined(__ICC) || defined(__SUNPRO_C)
32
    #define DECLARE_ALIGNED(n,t,v)      t v __attribute__ ((aligned (n)))
33
    #define DECLARE_ASM_CONST(n,t,v)    const t __attribute__ ((aligned (n))) v
34
#elif defined(__GNUC__)
35
    #define DECLARE_ALIGNED(n,t,v)      t v __attribute__ ((aligned (n)))
36
    #define DECLARE_ASM_CONST(n,t,v)    static const t v attribute_used __attribute__ ((aligned (n)))
37
#elif defined(_MSC_VER)
38
    #define DECLARE_ALIGNED(n,t,v)      __declspec(align(n)) t v
39
    #define DECLARE_ASM_CONST(n,t,v)    __declspec(align(n)) static const t v
40
#else
41
    #define DECLARE_ALIGNED(n,t,v)      t v
42
    #define DECLARE_ASM_CONST(n,t,v)    static const t v
43
#endif
44

  
45

  
31 46
#if AV_GCC_VERSION_AT_LEAST(3,1)
32 47
    #define av_malloc_attrib __attribute__((__malloc__))
33 48
#else

Also available in: Unified diff