From: José Fonseca Date: Fri, 11 Feb 2011 11:14:44 +0000 (+0000) Subject: llvmpipe: Use u_math's round. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7ac2db893a87684641f298b40e25a3b2d9991b53;p=mesa.git llvmpipe: Use u_math's round. --- diff --git a/src/gallium/drivers/llvmpipe/lp_test_main.c b/src/gallium/drivers/llvmpipe/lp_test_main.c index 149ee6f1256..d229c620310 100644 --- a/src/gallium/drivers/llvmpipe/lp_test_main.c +++ b/src/gallium/drivers/llvmpipe/lp_test_main.c @@ -35,24 +35,13 @@ #include "util/u_cpu_detect.h" +#include "util/u_math.h" #include "gallivm/lp_bld_const.h" #include "gallivm/lp_bld_init.h" #include "lp_test.h" -#ifdef PIPE_CC_MSVC -static INLINE double -round(double x) -{ - if (x >= 0.0) - return floor(x + 0.5); - else - return ceil(x - 0.5); -} -#endif - - void dump_type(FILE *fp, struct lp_type type)