Mesa (master): gallium/util: Define isfinite and isnan for MSVC.
Chia-I Wu
olv at kemper.freedesktop.org
Mon May 31 05:28:55 UTC 2010
Module: Mesa
Branch: master
Commit: a2f311530790d7499cec3ee22132d7f391c850f3
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a2f311530790d7499cec3ee22132d7f391c850f3
Author: Chia-I Wu <olv at lunarg.com>
Date: Mon May 31 13:01:46 2010 +0800
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 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 ee52c09..6370e77 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 )
More information about the mesa-commit
mailing list