llvmpipe: Implement round() for MSVC.

This commit is contained in:
José Fonseca 2009-10-27 20:09:53 +00:00
parent 6bc1e9fd69
commit 095e66f695

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)