llvmpipe: Implement round() for MSVC.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user