aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/util/u_math.h
Commit message (Collapse)AuthorAgeFilesLines
* util: Define ffs for MinGW.José Fonseca2009-01-301-0/+4
|
* Merge commit 'origin/gallium-0.1' into gallium-0.2Keith Whitwell2008-11-191-6/+8
|\
| * gallium: Use costum log2 for all windows builds.José Fonseca2008-11-171-6/+8
| |
* | Merge commit 'origin/gallium-0.1' into gallium-0.2Keith Whitwell2008-11-151-3/+5
|\| | | | | | | | | | | Conflicts: src/mesa/drivers/dri/common/dri_util.c
| * gallium: increase table size for fast log/pow functionsBrian Paul2008-11-141-3/+5
| | | | | | | | The various conformance tests pass now.
| * util: Optimise log2().Michal Krol2008-11-121-1/+2
| |
| * util: Add log2() definition for MSC.Michal Krol2008-11-121-0/+5
| |
| * util: Fix util_fast_pow/exp2/log2.Brian2008-11-091-65/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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
* | util: Optimise log2().Michal Krol2008-11-121-1/+2
| |
* | util: Add log2() definition for MSC.Michal Krol2008-11-121-0/+5
| |
* | gallium: WinCE portability fixes.José Fonseca2008-11-031-1/+1
| |
* | util: Fix util_fast_pow/exp2/log2.José Fonseca2008-10-011-65/+47
| | | | | | | | | | | | | | | | | | | | | | - 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.
* | util: Update fast_log2 article url.José Fonseca2008-09-261-1/+1
|/
* util: Add missing p_debug.h include.José Fonseca2008-09-181-0/+1
|
* gallium: add another value check to util_fast_pow()Brian Paul2008-09-131-2/+4
| | | | Fixes glitches seen in morph3d demo.
* gallium: refactor/replace p_util.h with util/u_memory.h and util/u_math.hBrian Paul2008-08-241-2/+238
| | | | Also, rename p_tile.[ch] to u_tile.[ch]
* gallium: insert __cplusplus/extern wrappingsBrian Paul2008-08-221-0/+9
|
* gallium: move math macros from p_util.h to u_math.hBrian Paul2008-08-221-0/+49
| | | | More can be done...
* gallium: new u_math.[ch] files for math functionsBrian Paul2008-08-221-0/+144
So far, optimized/low-precision versions of exp(), exp2(), log2(), pow().