Revision 4bfc91a0 libavutil/mem.h

View differences:

libavutil/mem.h
27 27
#define FFMPEG_MEM_H
28 28

  
29 29
#ifdef __ICC
30
  #define DECLARE_ALIGNED(n,t,v)       t v __attribute__ ((aligned (n)))
31
  #define DECLARE_ASM_CONST(n,t,v)     const t __attribute__ ((aligned (n))) v
30
    #define DECLARE_ALIGNED(n,t,v)      t v __attribute__ ((aligned (n)))
31
    #define DECLARE_ASM_CONST(n,t,v)    const t __attribute__ ((aligned (n))) v
32 32
#elif defined(__GNUC__)
33
  #define DECLARE_ALIGNED(n,t,v)       t v __attribute__ ((aligned (n)))
34
  #define DECLARE_ASM_CONST(n,t,v)     static const t v attribute_used __attribute__ ((aligned (n)))
33
    #define DECLARE_ALIGNED(n,t,v)      t v __attribute__ ((aligned (n)))
34
    #define DECLARE_ASM_CONST(n,t,v)    static const t v attribute_used __attribute__ ((aligned (n)))
35 35
#elif defined(_MSVC)
36
  #define DECLARE_ALIGNED(n,t,v)      __declspec(align(n)) t v
37
  #define DECLARE_ASM_CONST(n,t,v)    __declspec(align(n)) static const t v
36
    #define DECLARE_ALIGNED(n,t,v)      __declspec(align(n)) t v
37
    #define DECLARE_ASM_CONST(n,t,v)    __declspec(align(n)) static const t v
38 38
#else
39
  #warning No align and asm directives, this might fail.
40
  #define DECLARE_ALIGNED(n,t,v)      t v
41
  #define DECLARE_ASM_CONST(n,t,v)    static const t v
39
    #warning No align and asm directives, this might fail.
40
    #define DECLARE_ALIGNED(n,t,v)      t v
41
    #define DECLARE_ASM_CONST(n,t,v)    static const t v
42 42
#endif
43 43

  
44 44
/**

Also available in: Unified diff