Revision 16c2e214

View differences:

libavutil/internal.h
258 258
    }\
259 259
}
260 260

  
261
#if defined(__ICC) || defined(__SUNPRO_C)
262
    #define DECLARE_ALIGNED(n,t,v)      t v __attribute__ ((aligned (n)))
263
    #define DECLARE_ASM_CONST(n,t,v)    const t __attribute__ ((aligned (n))) v
264
#elif defined(__GNUC__)
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)))
267
#elif defined(_MSC_VER)
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
270
#else
271
    #define DECLARE_ALIGNED(n,t,v)      t v
272
    #define DECLARE_ASM_CONST(n,t,v)    static const t v
273
#endif
274

  
275

  
276 261
#if !HAVE_LLRINT
277 262
static av_always_inline av_const long long llrint(double x)
278 263
{
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