Browse Source

Fix typo in RoughApproxPow2

tags/mesa_20050610
Keith Whitwell 20 years ago
parent
commit
2c6e8e90ec
1 changed files with 5 additions and 1 deletions
  1. 5
    1
      src/mesa/tnl/t_vb_arbprogram.c

+ 5
- 1
src/mesa/tnl/t_vb_arbprogram.c View File

@@ -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
}



Loading…
Cancel
Save