gallivm: (trivial) don't try to use rcp when the division 1/x is integer
authorRoland Scheidegger <sroland@vmware.com>
Mon, 8 Sep 2014 11:56:13 +0000 (13:56 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Mon, 8 Sep 2014 23:44:08 +0000 (01:44 +0200)
commit08f13ff43950a732cf3e7693565e4277feccf2e4
tree4e6e08aa52eee2ce7e0235f423ce398dc3b53fd4
parent51b52ea013e5b146130ab359ecd47bb076b787d0
gallivm: (trivial) don't try to use rcp when the division 1/x is integer

This would just crash. Noticed by accident while checking int divisions by zero
with a quickly hacked piglit test.

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