gallivm: fix incorrect floor(), itrunc()
authorBrian Paul <brianp@vmware.com>
Mon, 15 Mar 2010 16:29:04 +0000 (10:29 -0600)
committerBrian Paul <brianp@vmware.com>
Mon, 15 Mar 2010 16:29:10 +0000 (10:29 -0600)
commitf9d753787e6c566d3481cca07dee939239eb7071
tree1c06ece2af7ae79f2f5cf778d56612830759d57e
parent50d96f741e59678a19dd3308d532add1350ad441
gallivm: fix incorrect floor(), itrunc()

LLVMBuildFPTrunc() should be used for double->float conversion, not
float->int conversion.

There should be a better way to compute floor(), ceil(), etc that doesn't
involve float->int->float conversion.
src/gallium/auxiliary/gallivm/lp_bld_arit.c