X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Ftypes.h;h=1a9dab7e4d45e1ce25890b1a5484d1e302d82b3f;hp=31e73bfbdbdabd76f72905c87de90ec14187f059;hb=8d86e95e37823f66e12d251bca1c4803de7c7d94;hpb=803c8e0be3de7357a27c5fcd6c5580f5399e8389 diff --git a/src/types.h b/src/types.h index 31e73bfb..1a9dab7e 100644 --- a/src/types.h +++ b/src/types.h @@ -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) \