mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-23 01:18:46 +00:00
SSE2: Add macro for force inline
This commit is contained in:
parent
d6e1053a61
commit
5318a8e4ab
1 changed files with 13 additions and 0 deletions
|
@ -329,6 +329,19 @@ typedef unsigned int uint; // at least 32bits (depend of processor)
|
||||||
#endif // NL_OS_UNIX
|
#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
|
#ifdef NL_COMP_VC
|
||||||
#define NL_ALIGN(nb) __declspec(align(nb))
|
#define NL_ALIGN(nb) __declspec(align(nb))
|
||||||
#else
|
#else
|
||||||
|
|
Loading…
Reference in a new issue