Mesa (master): glsl/builtins: Add forgotten hyperbolic trig builtins in 1. 30 profiles.

Kenneth Graunke kwg at kemper.freedesktop.org
Wed Aug 18 20:17:30 UTC 2010


Module: Mesa
Branch: master
Commit: 08a84c6a4aa8f69af6b6981f62d81dd0424dae4a
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=08a84c6a4aa8f69af6b6981f62d81dd0424dae4a

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Wed Aug 18 13:16:50 2010 -0700

glsl/builtins: Add forgotten hyperbolic trig builtins in 1.30 profiles.

---

 src/glsl/builtins/profiles/130.frag |   32 ++++++++++++++++++++++++++++++++
 src/glsl/builtins/profiles/130.vert |   32 ++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+), 0 deletions(-)

diff --git a/src/glsl/builtins/profiles/130.frag b/src/glsl/builtins/profiles/130.frag
index 39c73c4..aa7a6ad 100644
--- a/src/glsl/builtins/profiles/130.frag
+++ b/src/glsl/builtins/profiles/130.frag
@@ -47,6 +47,38 @@ vec2  atan(vec2  y_over_x);
 vec3  atan(vec3  y_over_x);
 vec4  atan(vec4  y_over_x);
 
+float sinh(float x);
+vec2  sinh(vec2  x);
+vec3  sinh(vec3  x);
+vec4  sinh(vec4  x);
+
+float cosh(float x);
+vec2  cosh(vec2  x);
+vec3  cosh(vec3  x);
+vec4  cosh(vec4  x);
+
+float tanh(float x);
+vec2  tanh(vec2  x);
+vec3  tanh(vec3  x);
+vec4  tanh(vec4  x);
+
+#if 0
+float asinh(float x);
+vec2  asinh(vec2  x);
+vec3  asinh(vec3  x);
+vec4  asinh(vec4  x);
+
+float acosh(float x);
+vec2  acosh(vec2  x);
+vec3  acosh(vec3  x);
+vec4  acosh(vec4  x);
+
+float atanh(float x);
+vec2  atanh(vec2  x);
+vec3  atanh(vec3  x);
+vec4  atanh(vec4  x);
+#endif
+
 /*
  * 8.2 - Exponential Functions
  */
diff --git a/src/glsl/builtins/profiles/130.vert b/src/glsl/builtins/profiles/130.vert
index 1aaad19..d0152b0 100644
--- a/src/glsl/builtins/profiles/130.vert
+++ b/src/glsl/builtins/profiles/130.vert
@@ -47,6 +47,38 @@ vec2  atan(vec2  y_over_x);
 vec3  atan(vec3  y_over_x);
 vec4  atan(vec4  y_over_x);
 
+float sinh(float x);
+vec2  sinh(vec2  x);
+vec3  sinh(vec3  x);
+vec4  sinh(vec4  x);
+
+float cosh(float x);
+vec2  cosh(vec2  x);
+vec3  cosh(vec3  x);
+vec4  cosh(vec4  x);
+
+float tanh(float x);
+vec2  tanh(vec2  x);
+vec3  tanh(vec3  x);
+vec4  tanh(vec4  x);
+
+#if 0
+float asinh(float x);
+vec2  asinh(vec2  x);
+vec3  asinh(vec3  x);
+vec4  asinh(vec4  x);
+
+float acosh(float x);
+vec2  acosh(vec2  x);
+vec3  acosh(vec3  x);
+vec4  acosh(vec4  x);
+
+float atanh(float x);
+vec2  atanh(vec2  x);
+vec3  atanh(vec3  x);
+vec4  atanh(vec4  x);
+#endif
+
 /*
  * 8.2 - Exponential Functions
  */




More information about the mesa-commit mailing list