From: Chia-I Wu Date: Mon, 31 May 2010 05:01:46 +0000 (+0800) Subject: gallium/util: Define isfinite and isnan for MSVC. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a2f311530790d7499cec3ee22132d7f391c850f3;p=mesa.git 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. --- 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 )