mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-24 15:59:03 +00:00
Intel compiler changes compat.h (#285)
This commit is contained in:
committed by
Kévin Petit
parent
bc0000ba10
commit
3c3820dbcb
@@ -123,30 +123,35 @@ typedef long long int64_t;
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef M_PI
|
#ifndef M_PI
|
||||||
#define M_PI 3.14159265358979323846264338327950288
|
#define M_PI 3.14159265358979323846264338327950288
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if ! defined( __INTEL_COMPILER )
|
#ifndef NAN
|
||||||
|
#define NAN (INFINITY - INFINITY)
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef NAN
|
#ifndef HUGE_VALF
|
||||||
#define NAN (INFINITY - INFINITY)
|
#define HUGE_VALF (float)HUGE_VAL
|
||||||
#endif
|
#endif
|
||||||
#ifndef HUGE_VALF
|
|
||||||
#define HUGE_VALF (float)HUGE_VAL
|
#ifndef INFINITY
|
||||||
#endif
|
#define INFINITY (FLT_MAX + FLT_MAX)
|
||||||
#ifndef INFINITY
|
#endif
|
||||||
#define INFINITY (FLT_MAX + FLT_MAX)
|
|
||||||
#endif
|
#ifndef isfinite
|
||||||
#ifndef isfinite
|
#define isfinite(x) _finite(x)
|
||||||
#define isfinite(x) _finite(x)
|
#endif
|
||||||
#endif
|
|
||||||
#ifndef isnan
|
#ifndef isnan
|
||||||
#define isnan( x ) ((x) != (x))
|
#define isnan( x ) ((x) != (x))
|
||||||
#endif
|
#endif
|
||||||
#ifndef isinf
|
|
||||||
#define isinf( _x) ((_x) == INFINITY || (_x) == -INFINITY)
|
#ifndef isinf
|
||||||
#endif
|
#define isinf( _x) ((_x) == INFINITY || (_x) == -INFINITY)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if ! defined( __INTEL_COMPILER )
|
||||||
|
|
||||||
double rint( double x);
|
double rint( double x);
|
||||||
float rintf( float x);
|
float rintf( float x);
|
||||||
|
|||||||
Reference in New Issue
Block a user