projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8103203
)
Fix typo in RoughApproxPow2
author
Keith Whitwell
<keith@tungstengraphics.com>
Thu, 9 Jun 2005 18:52:42 +0000
(18:52 +0000)
committer
Keith Whitwell
<keith@tungstengraphics.com>
Thu, 9 Jun 2005 18:52:42 +0000
(18:52 +0000)
src/mesa/tnl/t_vb_arbprogram.c
patch
|
blob
|
history
diff --git
a/src/mesa/tnl/t_vb_arbprogram.c
b/src/mesa/tnl/t_vb_arbprogram.c
index 4789b7901752a3f9c45e64f92d7a01328d46d143..c569d93478fb92d161f5b9382fc242c60e5738b0 100644
(file)
--- a/
src/mesa/tnl/t_vb_arbprogram.c
+++ b/
src/mesa/tnl/t_vb_arbprogram.c
@@
-99,7
+99,7
@@
static GLfloat RoughApproxPow2(GLfloat t)
GLfloat q;
#ifdef USE_IEEE
GLint ii = (GLint) t;
- ii = (ii < 23) + 0x3f800000;
+ ii = (ii <
<
23) + 0x3f800000;
SET_FLOAT_BITS(q, ii);
q = *((GLfloat *) (void *)&ii);
#else
@@
-110,7
+110,11
@@
static GLfloat RoughApproxPow2(GLfloat t)
static GLfloat RoughApproxPower(GLfloat x, GLfloat y)
{
+#if 0
+ return RoughApproxPow2(y * RoughApproxLog2(x));
+#else
return (GLfloat) _mesa_pow(x, y);
+#endif
}