gallivm: fix somewhat broken NaN behavior for exp2
authorRoland Scheidegger <sroland@vmware.com>
Fri, 29 Aug 2014 03:12:00 +0000 (05:12 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Fri, 29 Aug 2014 23:34:41 +0000 (01:34 +0200)
commitca4f0baca278310139a207d1a290db216e637119
tree1807bb899f25e71f8f645fdd6139a2b546b3e295
parent3d29e75a5f59639c3b9dfed26cd41ab13c0d60fc
gallivm: fix somewhat broken NaN behavior for exp2

I actually screwed that up in 754319490f6946a9ad5ee619822d5fe4254e6759,
mistakenly thinking the code actually wanted the non-nan result before.
So, introduce that missing nan behavior case and use that instead.
For sse, there's no actual change in the resulting code at all, the fallback
code wouldn't have done the right thing though.
Of course, the actual issue I saw with pow() was completely unrelated...

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_arit.c
src/gallium/auxiliary/gallivm/lp_bld_arit.h