This website works better with JavaScript.
Home
Explore
Help
Sign In
brkho
/
mesa
Watch
1
Star
0
Fork
0
Code
Releases
562
Wiki
Activity
Browse Source
llvmpipe: Implement round() for MSVC.
tags/mesa_7_7_rc1
José Fonseca
16 years ago
parent
6bc1e9fd69
commit
095e66f695
1 changed files
with
12 additions
and
0 deletions
Split View
Show Diff Stats
12
0
src/gallium/drivers/llvmpipe/lp_test_main.c
+ 12
- 0
src/gallium/drivers/llvmpipe/lp_test_main.c
View File
@@ -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)
Write
Preview
Loading…
Cancel
Save