From f6ad306a57374b79c9a1f056d0a724ebb85809e4 Mon Sep 17 00:00:00 2001 From: kaetemi Date: Fri, 13 Jun 2014 20:25:45 +0200 Subject: [PATCH] SSE2: Add macro for force inline --HG-- branch : sse2 --- code/nel/include/nel/misc/types_nl.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/code/nel/include/nel/misc/types_nl.h b/code/nel/include/nel/misc/types_nl.h index f4001fd94..a9c6c6cfb 100644 --- a/code/nel/include/nel/misc/types_nl.h +++ b/code/nel/include/nel/misc/types_nl.h @@ -329,6 +329,19 @@ typedef unsigned int uint; // at least 32bits (depend of processor) #endif // NL_OS_UNIX +// #ifdef NL_ENABLE_FORCE_INLINE +# ifdef NL_COMP_VC +# define NL_FORCE_INLINE __forceinline +# elif NL_COMP_GCC +# define NL_FORCE_INLINE inline __attribute__((always_inline)) +# else +# define NL_FORCE_INLINE inline +# endif +// #else +// # define NL_FORCE_INLINE inline +// #endif + + #ifdef NL_COMP_VC #define NL_ALIGN(nb) __declspec(align(nb)) #else