Mesa (master): llvmpipe: Use u_math's round.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Fri Feb 11 12:33:00 UTC 2011


Module: Mesa
Branch: master
Commit: 7ac2db893a87684641f298b40e25a3b2d9991b53
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7ac2db893a87684641f298b40e25a3b2d9991b53

Author: José Fonseca <jfonseca at vmware.com>
Date:   Fri Feb 11 11:14:44 2011 +0000

llvmpipe: Use u_math's round.

---

 src/gallium/drivers/llvmpipe/lp_test_main.c |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_test_main.c b/src/gallium/drivers/llvmpipe/lp_test_main.c
index 149ee6f..d229c62 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)




More information about the mesa-commit mailing list