From: Dmitri Vorobiev Date: Fri, 17 Sep 2010 14:52:22 +0000 (+0300) Subject: Add noinline macro X-Git-Tag: pixman-0.19.4~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=eab3a77877b0e850c46f95dacffb31994e6a7e41;p=platform%2Fupstream%2Fpixman.git Add noinline macro This patch adds a noinline macro, which expands to compiler-dependent keywords that tell the compiler to never inline a function. --- diff --git a/pixman/pixman-compiler.h b/pixman/pixman-compiler.h index 22b9fe7..8f6c787 100644 --- a/pixman/pixman-compiler.h +++ b/pixman/pixman-compiler.h @@ -50,13 +50,18 @@ /* 'inline' is available only in C++ in MSVC */ # define inline __inline # define force_inline __forceinline +# define noinline __declspec(noinline) #elif defined __GNUC__ || (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590)) # define inline __inline__ # define force_inline __inline__ __attribute__ ((__always_inline__)) +# define noinline __attribute__((noinline)) #else # ifndef force_inline # define force_inline inline # endif +# ifndef noinline +# define noinline +# endif #endif /* GCC visibility */