mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
Fix ilogbl crash and fetestexcept build if _MSC_VER>=1800 (#230)
FP_ILOGB0, FP_ILOGBNAN, ilogbm, ilogbf, ilogbl, fetestexcept and feclearexcept are supported in Visual Studio 2013.
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user