Force inlining of move generation functions

MSVC (and possibly other compilers) does not inline
as requested, so force it to do so.

No functional change.

Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
Marco Costalba
2011-01-07 16:33:15 +01:00
parent 44fbbeafc9
commit b3545737fa
2 changed files with 20 additions and 10 deletions

View File

@@ -119,6 +119,15 @@ inline void __cpuid(int CPUInfo[4], int)
}
#endif
// Define FORCE_INLINE macro to force inlining overriding compiler choice
#if defined(_MSC_VER)
#define FORCE_INLINE __forceinline
#elif defined(__GNUC__)
#define FORCE_INLINE inline __attribute__((always_inline))
#elif
#define FORCE_INLINE inline
#endif
// Operators used by enum types like Depth, Piece, Square and so on.
#define ENABLE_OPERATORS_ON(T) \