From a2f311530790d7499cec3ee22132d7f391c850f3 Mon Sep 17 00:00:00 2001 From: Chia-I Wu Date: Mon, 31 May 2010 13:01:46 +0800 Subject: gallium/util: Define isfinite and isnan for MSVC. Define isfinite and isnan to _finite and _isnan respectively for MSVC. Those macros are needed by st/vega. --- src/gallium/auxiliary/util/u_math.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gallium/auxiliary/util/u_math.h') diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h index ee52c09e347..6370e779865 100644 --- a/src/gallium/auxiliary/util/u_math.h +++ b/src/gallium/auxiliary/util/u_math.h @@ -168,6 +168,9 @@ static INLINE float logf( float f ) #undef logf #define logf(x) ((float)log((double)(x))) #endif /* logf */ + +#define isfinite(x) _finite((double)(x)) +#define isnan(x) _isnan((double)(x)) #endif static INLINE double log2( double x ) -- cgit v1.2.3