rre/windows: no longer define round()
FossilOrigin-Name: d736a60dcb2257fe74be5f5a97f00cdaa9995823d36d31008ed77736532fce00
This commit is contained in:
parent
4b4b84c116
commit
4b5053b5e4
1 changed files with 0 additions and 12 deletions
|
@ -478,18 +478,6 @@ int is_even(double d) {
|
|||
return 2.0 * int_part == d;
|
||||
}
|
||||
|
||||
double round(double d) {
|
||||
double i = floor(d);
|
||||
d -= i;
|
||||
if(d < 0.5)
|
||||
return i;
|
||||
if(d > 0.5)
|
||||
return i + 1.0;
|
||||
if(is_even(i))
|
||||
return i;
|
||||
return i + 1.0;
|
||||
}
|
||||
|
||||
void float_push(double value) {
|
||||
fsp++;
|
||||
Floats[fsp] = value;
|
||||
|
|
Loading…
Reference in a new issue