gallivm: Use lp_build_div instead of lp_build_mul + lp_build_rcp.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 11 Aug 2010 14:13:17 +0000 (15:13 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 11 Aug 2010 14:14:10 +0000 (15:14 +0100)
commit10ce6779e8a64c33add70e440f885c210f3fa6ee
tree2536d6330e1f5774652fcd26bc86bdc426fdcc49
parentf8533482f4a9b5ee7107f4e653d4ebf99ac63e2e
gallivm: Use lp_build_div instead of lp_build_mul + lp_build_rcp.

Single divide, so let lp_build_div decide how to implement this.

This will save a multiplication in architectures which don't have
a RCP intrinsic.
src/gallium/auxiliary/gallivm/lp_bld_sample_soa.c