Browse Source

llvmpipe: Implement round() for MSVC.

tags/mesa_7_7_rc1
José Fonseca 16 years ago
parent
commit
095e66f695
1 changed files with 12 additions and 0 deletions
  1. 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)

Loading…
Cancel
Save