diff --git a/src/Resample.h b/src/Resample.h index 2d40eb91a1..b729ab9df0 100644 --- a/src/Resample.h +++ b/src/Resample.h @@ -154,11 +154,17 @@ struct RatioState } }; +#if defined(_MSC_VER) +#define BUNGEE_NOINLINE __declspec(noinline) +#else +#define BUNGEE_NOINLINE __attribute__((noinline)) +#endif + template struct Loop { template - static __attribute__((noinline)) void run(RatioState &ratioState, Internal &internal, External external) // const & ext + static BUNGEE_NOINLINE void run(RatioState &ratioState, Internal &internal, External external) // const & ext { const Assert::FloatingPointExceptions floatingPointExceptions(FE_INEXACT | FE_UNDERFLOW);