projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bc1e9f
)
llvmpipe: Implement round() for MSVC.
author
José Fonseca
<jfonseca@vmware.com>
Tue, 27 Oct 2009 20:09:53 +0000
(20:09 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Wed, 28 Oct 2009 11:26:26 +0000
(11:26 +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 d4767ff52ba7e2084523c66b53bbddd9b59a976c..82fada5a359332352e11cd2f3cfc818c37295d18 100644
(file)
--- a/
src/gallium/drivers/llvmpipe/lp_test_main.c
+++ b/
src/gallium/drivers/llvmpipe/lp_test_main.c
@@
-40,6
+40,18
@@
#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)