mesa: Add definitions for inverse hyperbolic function on MSVC.

This commit is contained in:
Vinson Lee
2010-11-15 22:00:32 -08:00
parent 1935bdca44
commit 063c6b8f74
+3
View File
@@ -150,6 +150,9 @@ typedef union { GLfloat f; GLint i; } fi_type;
static INLINE float truncf(float x) { return x < 0.0f ? ceilf(x) : floorf(x); }
static INLINE float exp2f(float x) { return powf(2.0f, x); }
static INLINE float log2f(float x) { return logf(x) * 1.442695041f; }
static INLINE float asinhf(float x) { return logf(x + sqrtf(x * x + 1.0f)); }
static INLINE float acoshf(float x) { return logf(x + sqrtf(x * x - 1.0f)); }
static INLINE float atanhf(float x) { return (logf(1.0f + x) - logf(1.0f - x)) / 2.0f; }
static INLINE int isblank(int ch) { return ch == ' ' || ch == '\t'; }
#define strtoll(p, e, b) _strtoi64(p, e, b)
#endif