mesa/src/util
Matt Turner 036e347f3c util: Optimize _mesa_roundeven with SSE 4.1.
The SSE 4.1 ROUND instructions let us implement roundeven directly.
Otherwise we assume that the rounding mode has not been modified (as we
do in the rest of Mesa) and use rint().

glibc uses the ROUND instruction in rint() after a cpuid check. This
patch just lets us inline it directly when we're already building for
SSE 4.1.

Reviewed-by: Carl Worth <cworth@cworth.org>
2015-03-18 21:06:26 -07:00
..
tests/hash_table util/hash: Silence comparison between signed and unsigned integer warnings in tests 2015-02-17 12:29:58 -08:00
.gitignore util: add u_atomic_test to .gitignore 2014-12-16 13:50:59 +02:00
Android.mk util: Include in Android builds 2014-10-03 01:25:28 +01:00
bitset.h util: replace Elements() with ARRAY_SIZE() 2015-03-02 08:55:31 -07:00
format_srgb.h util: include c99_compat.h in format_srgb.h to get 'inline' definition 2014-08-04 14:06:13 -06:00
format_srgb.py gallium: Move sRGB <-> RGB handling to libmesautil 2014-08-04 11:07:15 -07:00
hash_table.c util/hash_table: Do a full search when adding new items 2015-02-07 17:01:05 -08:00
hash_table.h hash_table: Rename insert_with_hash to insert_pre_hashed 2015-01-15 13:21:27 -08:00
macros.h Add macro for unused function attribute. 2015-03-09 17:28:39 -07:00
Makefile.am util: Add a roundeven test. 2015-03-18 21:06:26 -07:00
Makefile.sources mesa: Replace _mesa_round_to_even() with _mesa_roundeven(). 2015-03-18 21:06:26 -07:00
mesa-sha1.c Rename sha1.c and sha1.h to mesa-sha1.c and mesa-sha1.h 2015-01-19 10:53:07 -08:00
mesa-sha1.h Rename sha1.c and sha1.h to mesa-sha1.c and mesa-sha1.h 2015-01-19 10:53:07 -08:00
ralloc.c util: Move ralloc to a new src/util directory. 2014-08-04 11:06:58 -07:00
ralloc.h ralloc: Mark ralloc functions with gcc's malloc attribute. 2014-09-25 13:52:55 -07:00
register_allocate.c ra: Disable round-robin strategy for optimistically colorable nodes. 2015-02-23 20:55:40 +02:00
register_allocate.h Fix invalid extern "C" around header inclusion. 2015-03-05 10:21:40 -08:00
rgtc.c util: move shared rgtc code to util (v2) 2014-09-17 11:27:25 +10:00
rgtc.h util: move shared rgtc code to util (v2) 2014-09-17 11:27:25 +10:00
roundeven_test.c util: Add a roundeven test. 2015-03-18 21:06:26 -07:00
rounding.h util: Optimize _mesa_roundeven with SSE 4.1. 2015-03-18 21:06:26 -07:00
SConscript scons: Use -Werror MSVC compatibility flags per-directory. 2015-03-04 15:12:06 +00:00
set.c util/set: Do a full search when adding new items 2015-02-07 17:01:05 -08:00
set.h util/hash_set: Rework the API to know about hashing 2015-01-15 13:21:27 -08:00
simple_list.h mesa: Port a variant of 68afbe89c7 to util/ 2015-01-28 16:33:34 -08:00
strtod.cpp util: initialize locale_t with a static object 2014-10-30 02:26:19 -07:00
strtod.h util: add _mesa_strtod and _mesa_strtof 2014-10-30 02:26:19 -07:00
texcompress_rgtc_tmp.h util: move shared rgtc code to util (v2) 2014-09-17 11:27:25 +10:00
u_atomic.h include: Add helper header to help trap includes inside extern C. 2015-03-06 12:38:55 +00:00
u_atomic_test.c uti/u_atomic: Don't test p_atomic_add with booleans. 2015-02-13 19:39:27 +00:00