mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-26 08:49:02 +00:00
Fixes #1833 according to task description.
This commit is contained in:
committed by
GitHub
parent
b149060d52
commit
265cc18843
@@ -112,12 +112,19 @@ int feclearexcept(int excepts);
|
|||||||
|
|
||||||
#if defined(__INTEL_COMPILER)
|
#if defined(__INTEL_COMPILER)
|
||||||
#include <mathimf.h>
|
#include <mathimf.h>
|
||||||
#elif __cplusplus && defined(_MSC_VER)
|
|
||||||
#include <cmath>
|
|
||||||
#else
|
#else
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef __cplusplus
|
||||||
|
#include <cmath>
|
||||||
|
extern "C" {
|
||||||
|
using std::isfinite;
|
||||||
|
using std::isinf;
|
||||||
|
using std::isnan;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef M_PI
|
#ifndef M_PI
|
||||||
#define M_PI 3.14159265358979323846264338327950288
|
#define M_PI 3.14159265358979323846264338327950288
|
||||||
#endif
|
#endif
|
||||||
@@ -140,18 +147,6 @@ extern "C" {
|
|||||||
#define INFINITY (FLT_MAX + FLT_MAX)
|
#define INFINITY (FLT_MAX + FLT_MAX)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef isfinite
|
|
||||||
#define isfinite(x) _finite(x)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef isnan
|
|
||||||
#define isnan(x) ((x) != (x))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef isinf
|
|
||||||
#define isinf(_x) ((_x) == INFINITY || (_x) == -INFINITY)
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if _MSC_VER < 1900 && !defined(__INTEL_COMPILER)
|
#if _MSC_VER < 1900 && !defined(__INTEL_COMPILER)
|
||||||
|
|
||||||
double rint(double x);
|
double rint(double x);
|
||||||
|
|||||||
Reference in New Issue
Block a user