Emulate exp2f() for older MS compilers where it wasn't available

This commit is contained in:
John Emmas 2021-05-05 17:50:41 +01:00
parent 5957e14259
commit a222292e68
3 changed files with 22 additions and 2 deletions

View file

@ -272,9 +272,10 @@ inline int64_t abs(int64_t val) throw()
// Emulate some C99 math functions which MSVC itself didn't
// implement until later in life.
#if defined(_MSC_VER) && (_MSC_VER < 1800)
extern double expm1(double x);
extern double log1p(double x);
extern double round(double x);
extern double expm1(double x);
extern float exp2f(float x);
extern float roundf(float x);
#endif
#if defined(_MSC_VER) && (_MSC_VER < 1900)