summaryrefslogtreecommitdiff
path: root/src/gallium/auxiliary/util/u_math.h
AgeCommit message (Collapse)Author
2011-03-16android: Fix build with bionic.Chia-I Wu
2011-03-02gallium: add RGTC UNORM support to u_format.Dave Airlie
SNORM needs a bit of work in the state tracker in order for mipmap generation to work I believe. I'm also not sure that having unorm fetches for an snorm format is sane.
2011-02-11util: Define round and roundf on MSVC.José Fonseca
2010-10-09util: Defined M_SQRT2 when not available.José Fonseca
2010-08-29util: remove util_is_pot in favor of util_is_power_of_twoMarek Olšák
The function was duplicated.
2010-08-27util: fix typo in MAX4Keith Whitwell
Thanks to Michal for spotting it.
2010-08-27util: add MIN4, MAX4Keith Whitwell
2010-06-22u_math: Add align function npot alignmentsJakob Bornecrantz
2010-05-31gallium/util: Define isfinite and isnan for MSVC.Chia-I Wu
Define isfinite and isnan to _finite and _isnan respectively for MSVC. Those macros are needed by st/vega.
2010-05-30util: Add inline function for approximate floating point comparison.José Fonseca
2010-02-26util: Add util_bswap16.José Fonseca
2010-01-02util: Silent potential loss of precision warnings.José Fonseca
Also ensure multiplication doesn't happen for negative numbers.
2009-12-22Merge branch 'i965g-restart'Keith Whitwell
Conflicts: configure.ac
2009-12-21Merge commit 'origin/master' into i965g-restartKeith Whitwell
Conflicts: SConstruct configs/default configs/linux-dri
2009-12-02gallium/util: __builtin_bswap32() is in only gcc 4.3 or laterBrian Paul
2009-11-28util: Fix bad code.Corbin Simpson
Uf. How embarrassing.
2009-11-28util: Improve bitcount.Corbin Simpson
Sorry for not pushing this before, it got lost in stashes.
2009-11-27gallium/util: added util_bswap32()Christoph Bumiller
2009-11-27Merge branch 'width0'Roland Scheidegger
Conflicts: src/gallium/drivers/r300/r300_texture.c src/gallium/state_trackers/xorg/xorg_exa.c src/mesa/state_tracker/st_cb_texture.c
2009-11-23gallium/util: added util_bitcount()Brian Paul
2009-11-20util: Add MAX3 and MIN3.Corbin Simpson
2009-11-19gallium: don't use arrays for texture width,height,depthKeith Whitwell
2009-10-31i965g: more work on compilationKeith Whitwell
2009-09-27util: Add util_next_power_of_two() for rounding a uint up to a POT.Younes Manton
2009-09-23Merge branch 'softpipe-opt'Keith Whitwell
Conflicts: progs/demos/cubemap.c src/gallium/drivers/softpipe/sp_tex_sample.c src/gallium/drivers/softpipe/sp_texture.c
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-21util: add util_is_power_of_two functionKeith Whitwell
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-07-22softpipe: shortcircuit repeated lookups of the same tileKeith Whitwell
The sp_tile_cache is often called repeatedly to look up the same tile. Add a cache (to the cache) of the single tile most recently retreived and make a quick inline check to see if this matches the subsequent request. Add a tile_address bitfield struct to make this check easier.
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