gallivm: handle -inf, inf and nan's in sin/cos instructions
authorZack Rusin <zackr@vmware.com>
Wed, 17 Jul 2013 20:55:52 +0000 (16:55 -0400)
committerZack Rusin <zackr@vmware.com>
Fri, 19 Jul 2013 20:29:17 +0000 (16:29 -0400)
commit192c68b85abb724079b98dde6cdd1edba2dbcb7c
tree10a8ec45cd66f6f14863ed64645b37809ef3a60b
parent13e2cd2f2ccb06cd6dc9acda0b6bbe268ee37879
gallivm: handle -inf, inf and nan's in sin/cos instructions

sin/cos for anything not finite is nan and everything else has
to be between [-1, 1].

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
src/gallium/auxiliary/gallivm/lp_bld_arit.h