gallivm: fix edge cases in exp2
authorZack Rusin <zackr@vmware.com>
Thu, 18 Jul 2013 06:38:54 +0000 (02:38 -0400)
committerZack Rusin <zackr@vmware.com>
Fri, 19 Jul 2013 20:29:17 +0000 (16:29 -0400)
commit7b672c1503abffcc83a30a9731419539f52ac73f
treef91b624cecf8c178e9b6e286b27097200348b0fd
parentab47bbecd64d05d4fe03bed28291387dd08f5b84
gallivm: fix edge cases in exp2

exp(0) has to be exactly 1, exp(-inf) has to be 0, exp(inf) has
to be inf and exp(nan) has to be nan, this fixes all of those
cases.

Signed-off-by: Zack Rusin <zackr@vmware.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/gallivm/lp_bld_arit.c