projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
151faa2
)
llvmpipe: Use u_math's round.
author
José Fonseca
<jfonseca@vmware.com>
Fri, 11 Feb 2011 11:14:44 +0000
(11:14 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Fri, 11 Feb 2011 11:24:54 +0000
(11:24 +0000)
src/gallium/drivers/llvmpipe/lp_test_main.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_test_main.c
b/src/gallium/drivers/llvmpipe/lp_test_main.c
index 149ee6f1256a4e9dca3c4144d8361fabeab0c8d7..d229c6203109f39214b7a6a3f92105a060c1ed08 100644
(file)
--- 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)