From 063c6b8f74d114241f663ef8fd93732a0a07c10f Mon Sep 17 00:00:00 2001 From: Vinson Lee Date: Mon, 15 Nov 2010 22:00:32 -0800 Subject: mesa: Add definitions for inverse hyperbolic function on MSVC. --- src/mesa/main/imports.h | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3