Fix ilogbl crash and fetestexcept build if _MSC_VER>=1800 (#238)

FP_ILOGB0, FP_ILOGBNAN, ilogbm, ilogbf, ilogbl, fetestexcept and
feclearexcept are supported in Visual Studio 2013.
This commit is contained in:
Wenju He
2019-04-29 20:42:20 +08:00
committed by Kévin Petit
parent 6e9736cf1e
commit f6a4879c7b

View File

@@ -117,6 +117,7 @@ long double rintl(long double x)
return x;
}
#if _MSC_VER < 1800
///////////////////////////////////////////////////////////////////
//
@@ -221,7 +222,7 @@ int ilogbl (long double x)
return exp - 0x3fff;
}
#endif // _MSC_VER < 1800
///////////////////////////////////////////////////////////////////
//
@@ -566,7 +567,7 @@ long int lrintf (float x)
//
///////////////////////////////////////////////////////////////////
#if _MSC_VER < 1900
#if _MSC_VER < 1800
int fetestexcept(int excepts)
{
unsigned int status = _statusfp();