Update fasttrig.h

FORCEINLINE is not a _WIN32 thing
It is a compiler attribute
use always_inline for GCC
__forceinline for MSVC
and plain inline for others
This commit is contained in:
Alam Ed Arias 2023-11-08 08:44:08 -05:00
parent fd7895f880
commit 37f55485f8

View file

@ -39,10 +39,16 @@
#define M_PI 3.14159265358979323846
#endif
#ifdef _WIN32
#ifndef FORCEINLINE
#if defined (_MSC_VER)
#define FORCEINLINE __forceinline
//#elif defined (__MINGW32__)
//#define FORCEINLINE inline
#elif defined (__GNUC__)
#define FORCEINLINE inline __attribute__((always_inline))
#else
#define FORCEINLINE
#define FORCEINLINE inline
#endif
#endif
// This uses a sine table with linear interpolation