diff options
author | Vinson Lee <vlee@vmware.com> | 2010-11-15 22:00:32 -0800 |
---|---|---|
committer | Vinson Lee <vlee@vmware.com> | 2010-11-15 22:00:32 -0800 |
commit | 063c6b8f74d114241f663ef8fd93732a0a07c10f (patch) | |
tree | dd85e0bdc44f679ff98b843d2536d7329f48ce41 | |
parent | 1935bdca44ec1f0a980b6b0c024ff2e4c7032dfe (diff) |
mesa: Add definitions for inverse hyperbolic function on MSVC.
-rw-r--r-- | src/mesa/main/imports.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index 5d4ef9bbab..5ea647ad8d 100644 --- a/src/mesa/main/imports.h +++ b/src/mesa/main/imports.h @@ -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 |