util: Use SSE intrinsics in _mesa_lroundeven{f,}.
authorMatt Turner <mattst88@gmail.com>
Mon, 29 Jun 2015 16:38:34 +0000 (09:38 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 4 Aug 2015 17:33:13 +0000 (10:33 -0700)
commit680de24545d23d0c2b699020267ca484f81a04a9
treefc35bb29a5935960bff0ec0ffc5e676c69b378ca
parent3c050222b0d5b47c885ca72f3c7af22c0d28b5ad
util: Use SSE intrinsics in _mesa_lroundeven{f,}.

gcc actually generates this for us now that we use -fno-math-errno
(which is weird, since lrintf()/lrint() don't set errno) but clang still
does not. Presumably helps MSVC as well.

Reduced .text size by 8.5k with gcc before -fno-math-errno.

   text     data      bss      dec      hex  filename
4935850   195136    26192  5157178   4eb13a  i965_dri.so before
4927225   195128    26192  5148545   4e8f81  i965_dri.so after

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/util/rounding.h