projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60558b1
)
gallium/util: Define isfinite and isnan for MSVC.
author
Chia-I Wu
<olv@lunarg.com>
Mon, 31 May 2010 05:01:46 +0000
(13:01 +0800)
committer
Chia-I Wu
<olv@lunarg.com>
Mon, 31 May 2010 05:27:58 +0000
(13:27 +0800)
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
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/util/u_math.h
b/src/gallium/auxiliary/util/u_math.h
index ee52c09e3476cbdab965445242dbcf72a8082874..6370e77986502a8f6384c5e83a68a4045c0c04c9 100644
(file)
--- 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 )