diff options
author | Chia-I Wu <[email protected]> | 2010-05-31 13:01:46 +0800 |
---|---|---|
committer | Chia-I Wu <[email protected]> | 2010-05-31 13:27:58 +0800 |
commit | a2f311530790d7499cec3ee22132d7f391c850f3 (patch) | |
tree | f468a1a782a2eb482fa69809dd3eb80929583444 | |
parent | 60558b1594e864ce8d44f2fe910075f2e47a164f (diff) |
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.
-rw-r--r-- | src/gallium/auxiliary/util/u_math.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 ) |