comparison internal.h @ 746:3b90ae5577ad libavutil

Move DECLARE_ALIGNED and DECLARE_ASM_CONST back from lavu/internal.h to lavu/mem.h.
author ramiro
date Thu, 09 Jul 2009 02:20:29 +0000
parents 59c9e9a0bc0a
children b27973fe5960
comparison
equal deleted inserted replaced
745:59c9e9a0bc0a 746:3b90ae5577ad
256 av_log(NULL, AV_LOG_ERROR, "Cannot allocate memory.");\ 256 av_log(NULL, AV_LOG_ERROR, "Cannot allocate memory.");\
257 goto fail;\ 257 goto fail;\
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 #if !HAVE_LLRINT 261 #if !HAVE_LLRINT
277 static av_always_inline av_const long long llrint(double x) 262 static av_always_inline av_const long long llrint(double x)
278 { 263 {
279 return rint(x); 264 return rint(x);
280 } 265 }