llvmpipe: Use u_math's round.

This commit is contained in:
José Fonseca
2011-02-11 11:14:44 +00:00
parent 151faa2258
commit 7ac2db893a
+1 -12
View File
@@ -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)