History log of /external/mesa3d/src/gallium/auxiliary/util/u_math.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
7e584a70c492698be18bf4d6372b50d1a1c38385 14-Nov-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: increase table size for fast log/pow functions

The various conformance tests pass now.
/external/mesa3d/src/gallium/auxiliary/util/u_math.c
ff42991c720bc1cfbf72194447fde0bebbd65b85 11-Nov-2008 Brian <brian.paul@tungstengraphics.com> gallium: fix comment again. A half-closed interval was intended.

Never saw the [a,b[ notation before.
/external/mesa3d/src/gallium/auxiliary/util/u_math.c
2276dcf05f7e0ae13ba434615cf7f34dc06b2afe 10-Nov-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: fix typos in comments
/external/mesa3d/src/gallium/auxiliary/util/u_math.c
325cbeb29a63e3d71da00baeab864970fe3aa595 09-Nov-2008 Brian <brian.paul@tungstengraphics.com> util: Fix util_fast_pow/exp2/log2.

- Use a lookup table for log2.

- Compute (float) (1 << ipart) by tweaking with the exponent directly to
avoid integer overflow and float conversion.

- Also table negative exponents to avoid float division and branching.

- Implement util_fast_exp as function of util_fast_exp2.

--------

Cherry-picked from gallium-0.2: 8415d06d90a197e16554dab98d160334fd9f9f93

This fixes some pow() glitches seen in fslight.c, spectex.c, etc.

Conflicts:
src/gallium/auxiliary/util/u_math.h
/external/mesa3d/src/gallium/auxiliary/util/u_math.c
e7ff7f78be6c14b6c48e451d6d1f597af379f8f8 23-Aug-2008 Michal Krol <michal@tungstengraphics.com> util: Silence compiler warnings on Windows.
/external/mesa3d/src/gallium/auxiliary/util/u_math.c
9e2b867b3f2e9afc9e9f9178788ae07f6be1f3c0 22-Aug-2008 Brian Paul <brian.paul@tungstengraphics.com> gallium: new u_math.[ch] files for math functions

So far, optimized/low-precision versions of exp(), exp2(), log2(), pow().
/external/mesa3d/src/gallium/auxiliary/util/u_math.c