summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_math.c
AgeCommit message (Collapse)Author
2008-11-14gallium: increase table size for fast log/pow functionsBrian Paul
The various conformance tests pass now.
2008-11-10gallium: fix comment again. A half-closed interval was intended.Brian
Never saw the [a,b[ notation before.
2008-11-10gallium: fix typos in commentsBrian Paul
2008-11-09util: Fix util_fast_pow/exp2/log2.Brian
- 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
2008-08-23util: Silence compiler warnings on Windows.Michal Krol
2008-08-22gallium: new u_math.[ch] files for math functionsBrian Paul
So far, optimized/low-precision versions of exp(), exp2(), log2(), pow().