diff options
author | Brian Paul <brianp@vmware.com> | 2009-04-07 08:32:42 -0600 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2009-04-07 08:32:42 -0600 |
commit | d5e0e03d43c2edeeca400979eb8ed06da844a1f5 (patch) | |
tree | dbfc9517c2ab2f8a78cb6379078b584cd87eed60 | |
parent | 775ca8e3fa5ddf090115907c78889ed8311cd3ae (diff) |
mesa: for OPCODE_LIT, use _mesa_pow() instead of exp() and log()
Also, s/pow/_mesa_pow/
(cherry picked from master, commit b8a200ac9d11c09646de9b7d3f3f64a742c6abe3)
-rw-r--r-- | src/mesa/shader/prog_execute.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/shader/prog_execute.c b/src/mesa/shader/prog_execute.c index 6a79cf4037..9c25a9eb43 100644 --- a/src/mesa/shader/prog_execute.c +++ b/src/mesa/shader/prog_execute.c @@ -873,7 +873,7 @@ _mesa_execute_program(GLcontext * ctx, * result.z = result.x * APPX(result.y) * We do what the ARB extension says. */ - q[2] = (GLfloat) pow(2.0, t[0]); + q[2] = (GLfloat) _mesa_pow(2.0, t[0]); } q[1] = t[0] - floor_t0; q[3] = 1.0F; @@ -986,7 +986,7 @@ _mesa_execute_program(GLcontext * ctx, if (a[1] == 0.0 && a[3] == 0.0) result[2] = 1.0; else - result[2] = EXPF(a[3] * LOGF(a[1])); + result[2] = (GLfloat) _mesa_pow(a[1], a[3]); } else { result[2] = 0.0; |