llvmpipe: Use u_math's round.
authorJosé Fonseca <jfonseca@vmware.com>
Fri, 11 Feb 2011 11:14:44 +0000 (11:14 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Fri, 11 Feb 2011 11:24:54 +0000 (11:24 +0000)
src/gallium/drivers/llvmpipe/lp_test_main.c

index 149ee6f1256a4e9dca3c4144d8361fabeab0c8d7..d229c6203109f39214b7a6a3f92105a060c1ed08 100644 (file)
 
 
 #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)