comparison mem.h @ 944:90651a771549 libavutil

icc 12 finally fixed attribute(used) so gcc's DECLARE_ASM_CONST can be used.
author cehoyos
date Wed, 16 Jun 2010 10:35:56 +0000
parents 0795a743bda1
children e461801687c9
comparison
equal deleted inserted replaced
943:da95a329a6b5 944:90651a771549
26 #ifndef AVUTIL_MEM_H 26 #ifndef AVUTIL_MEM_H
27 #define AVUTIL_MEM_H 27 #define AVUTIL_MEM_H
28 28
29 #include "attributes.h" 29 #include "attributes.h"
30 30
31 #if defined(__ICC) || defined(__SUNPRO_C) 31 #if defined(__ICC) && _ICC < 1200 || defined(__SUNPRO_C)
32 #define DECLARE_ALIGNED(n,t,v) t __attribute__ ((aligned (n))) v 32 #define DECLARE_ALIGNED(n,t,v) t __attribute__ ((aligned (n))) v
33 #define DECLARE_ASM_CONST(n,t,v) const t __attribute__ ((aligned (n))) v 33 #define DECLARE_ASM_CONST(n,t,v) const t __attribute__ ((aligned (n))) v
34 #elif defined(__TI_COMPILER_VERSION__) 34 #elif defined(__TI_COMPILER_VERSION__)
35 #define DECLARE_ALIGNED(n,t,v) \ 35 #define DECLARE_ALIGNED(n,t,v) \
36 AV_PRAGMA(DATA_ALIGN(v,n)) \ 36 AV_PRAGMA(DATA_ALIGN(v,n)) \