llvmpipe: Use u_math's round.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user