summaryrefslogtreecommitdiffstats
path: root/autogen.sh
diff options
context:
space:
mode:
authorRoland Scheidegger <sroland@vmware.com>2013-01-31 11:27:49 -0800
committerRoland Scheidegger <sroland@vmware.com>2013-02-16 02:40:44 +0100
commitc25ae5d27b114e23d5734f846002df1a05759658 (patch)
tree313509d2635332be6764b7f6549c73cac80b45af /autogen.sh
parent70daad6a99c9815fd55ffa016d35684e4414f257 (diff)
downloadexternal_mesa3d-c25ae5d27b114e23d5734f846002df1a05759658.zip
external_mesa3d-c25ae5d27b114e23d5734f846002df1a05759658.tar.gz
external_mesa3d-c25ae5d27b114e23d5734f846002df1a05759658.tar.bz2
gallivm: fix issues with trunc/round/floor/ceil with no arch rounding
The emulation of these if there's no rounding instruction available is a bit more complicated than what the code did. In particular, doing fp-to-int/int-to-fp will not work if the exponent is large enough (and with NaNs, Infs). Hence such values need to be filtered out and the original value returned in this case (which fortunately should always be exact). This comes at the expense of performance (if your cpu doesn't support rounding instructions). Furthermore, floor/ifloor/ceil/iceil were affected by precision issues for values near negative (for floor) or positive (for ceil) zero, fix that as well (fixing this issue might not actually be slower except for ceil/iceil if the type is not signed which is probably rare - note iceil has no callers left in any case). Also add some new rounding test values in lp_test_arit to actually test for that stuff (which previously would have failed without sse41). This fixes https://bugs.freedesktop.org/show_bug.cgi?id=59701.
Diffstat (limited to 'autogen.sh')
0 files changed, 0 insertions, 0 deletions