From: Vinson Lee Date: Tue, 16 Nov 2010 06:00:32 +0000 (-0800) Subject: mesa: Add definitions for inverse hyperbolic function on MSVC. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=063c6b8f74d114241f663ef8fd93732a0a07c10f;p=mesa.git mesa: Add definitions for inverse hyperbolic function on MSVC. --- diff --git a/src/mesa/main/imports.h b/src/mesa/main/imports.h index 5d4ef9bbaba..5ea647ad8d7 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