summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_math.c
diff options
context:
space:
mode:
authorBrian Paul <brian.paul@tungstengraphics.com>2008-11-14 12:55:05 -0700
committerBrian Paul <brian.paul@tungstengraphics.com>2008-11-14 12:58:12 -0700
commit7e584a70c492698be18bf4d6372b50d1a1c38385 (patch)
tree05f9ca9d5fa10246bc45766dd4e6e419a28a16a4 /src/gallium/auxiliary/util/u_math.c
parent6afab9001e5ebe5a970810b0e12dbfac0d9abe14 (diff)
gallium: increase table size for fast log/pow functions
The various conformance tests pass now.
Diffstat (limited to 'src/gallium/auxiliary/util/u_math.c')
-rw-r--r--src/gallium/auxiliary/util/u_math.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/util/u_math.c b/src/gallium/auxiliary/util/u_math.c
index d1571cd1fc..2811475fa0 100644
--- a/src/gallium/auxiliary/util/u_math.c
+++ b/src/gallium/auxiliary/util/u_math.c
@@ -52,7 +52,7 @@ init_log2_table(void)
{
unsigned i;
for (i = 0; i < LOG2_TABLE_SIZE; i++)
- log2_table[i] = (float) log2(1.0 + i * (1.0 / LOG2_TABLE_SIZE));
+ log2_table[i] = (float) log2(1.0 + i * (1.0 / LOG2_TABLE_SCALE));
}