gallivm: Fix lp_build_const_xxx for negative integers.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Tue, 15 May 2012 21:34:36 +0000 (22:34 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Tue, 15 May 2012 21:39:24 +0000 (22:39 +0100)
commitc95cea50a9e14255a60c37b156271b7ab50515e9
tree6c028ab04ef8922073ff7cfba13834551025cb92
parent1459c18f45f5bd2a2d99145247093f1b540478ad
gallivm: Fix lp_build_const_xxx for negative integers.

Do proper rounding.

Thanks to Olivier Galibert for investigating this.
src/gallium/auxiliary/gallivm/lp_bld_const.c