blob: 335446e5591030b1a7a92df82557446c331b9a3f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#include "mathc99.h"
#ifdef WIN32
#include <algorithm>
double round(double a) {
return a > 0 ? floor(a+0.5) : ceil(a-0.5);
}
float fmin(float a, float b) {
return std::min(a,b);
}
float fmax(float a, float b) {
return std::max(a,b);
}
#endif
|