Revision 4ce94923

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
#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
273
    #define DECLARE_ALIGNED(n,t,v)      t v
274
    #define DECLARE_ASM_CONST(n,t,v)    static const t v
275
#endif
276

  
277

  
261 278
#if !HAVE_LLRINT
262 279
static av_always_inline av_const long long llrint(double x)
263 280
{
libavutil/mem.h
26 26
#ifndef AVUTIL_MEM_H
27 27
#define AVUTIL_MEM_H
28 28

  
29
#include "config.h"
30 29
#include "common.h"
31 30

  
32
#if defined(__ICC) || defined(__SUNPRO_C)
33
    #define DECLARE_ALIGNED(n,t,v)      t v __attribute__ ((aligned (n)))
34
    #define DECLARE_ASM_CONST(n,t,v)    const t __attribute__ ((aligned (n))) v
35
#elif defined(__GNUC__)
36
    #define DECLARE_ALIGNED(n,t,v)      t v __attribute__ ((aligned (n)))
37
    #define DECLARE_ASM_CONST(n,t,v)    static const t v attribute_used __attribute__ ((aligned (n)))
38
#elif defined(_MSC_VER)
39
    #define DECLARE_ALIGNED(n,t,v)      __declspec(align(n)) t v
40
    #define DECLARE_ASM_CONST(n,t,v)    __declspec(align(n)) static const t v
41
#elif HAVE_INLINE_ASM
42
    #error The asm code needs alignment, but we do not know how to do it for this compiler.
43
#else
44
    #define DECLARE_ALIGNED(n,t,v)      t v
45
    #define DECLARE_ASM_CONST(n,t,v)    static const t v
46
#endif
47

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

Also available in: Unified diff