summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_math.h
AgeCommit message (Collapse)Author
2009-09-14util: Add _BitScanForward intrinsic's declaration.José Fonseca
It is missing in some Microsoft DDKs.
2009-09-07util: Utility function to check if a number is a power of two.José Fonseca
2009-09-03aux/tgsi: pull back ureg work from 0.1 branchKeith Whitwell
Manual merge of ureg changes on the branch. Too much unrelated stuff for a proper merge.
2009-08-29util: Add util_unsigned_logbase2.José Fonseca
Cherry picked from Keith's commit f911c3b9897b90132c8621a72bfeb824eb3b01e5.
2009-08-07gallium: Move minify() to u_math.Corbin Simpson
minify() is usually used in mipmap size calculation. Strangely enough, we all defined it as MAX2(1, d >> 1); imagine that. :3
2009-08-03gallium: comments, reformattingBrian Paul
2009-08-01mesa st: Move logbase2 function to util/u_math.hPatrice Mandin
2009-03-31gallium: added util_is_inf_or_nan() function to u_math.hBrian Paul
2009-03-25util: Don't use x86 asm on x86_64.José Fonseca
2009-02-18util: Move p_debug.h into util module.José Fonseca
The debug functions depend on several util function for os abstractions, and these depend on debug functions, so a seperate module is not possible.
2009-01-30util: Define ffs for MinGW.José Fonseca
2008-11-19Merge commit 'origin/gallium-0.1' into gallium-0.2Keith Whitwell
2008-11-17gallium: Use costum log2 for all windows builds.José Fonseca
2008-11-15Merge commit 'origin/gallium-0.1' into gallium-0.2Keith Whitwell
Conflicts: src/mesa/drivers/dri/common/dri_util.c
2008-11-14gallium: increase table size for fast log/pow functionsBrian Paul
The various conformance tests pass now.
2008-11-12util: Optimise log2().Michal Krol
2008-11-12util: Optimise log2().Michal Krol
2008-11-12util: Add log2() definition for MSC.Michal Krol
2008-11-12util: Add log2() definition for MSC.Michal Krol
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-11-03gallium: WinCE portability fixes.José Fonseca
2008-10-01util: Fix util_fast_pow/exp2/log2.José Fonseca
- 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.
2008-09-26util: Update fast_log2 article url.José Fonseca
2008-09-18util: Add missing p_debug.h include.José Fonseca
2008-09-13gallium: add another value check to util_fast_pow()Brian Paul
Fixes glitches seen in morph3d demo.
2008-08-24gallium: refactor/replace p_util.h with util/u_memory.h and util/u_math.hBrian Paul
Also, rename p_tile.[ch] to u_tile.[ch]
2008-08-22gallium: insert __cplusplus/extern wrappingsBrian Paul
2008-08-22gallium: move math macros from p_util.h to u_math.hBrian Paul
More can be done...
2008-08-22gallium: new u_math.[ch] files for math functionsBrian Paul
So far, optimized/low-precision versions of exp(), exp2(), log2(), pow().