Commit 47c429fa authored by Martin Marinov's avatar Martin Marinov
Browse files

Renamed round() in CoMISo/Utils/VSToolsT.h to int_round(), since an equivalent...

Renamed round() in CoMISo/Utils/VSToolsT.h to int_round(), since an equivalent function exists in math.h on other platforms. int_round() returns an int, where standard round returns a double.

[git-p4: depot-paths = "//ReForm/ReForm/main/CoMISo/": change = 13194]
parent c01933b3
......@@ -60,8 +60,11 @@ inline int isfinite(double x)
#endif
//TODO: round_to_int (or a better name)
inline int round(double _x) { return int(_x >= 0.0 ? _x + 0.5 : _x - 0.5); }
inline int int_round(const double _x)
{
return int(_x >= 0.0 ? _x + 0.5 : _x - 0.5);
}
inline bool same(const double _x, const double _y, const double _tol)
{
return fabs(_x - _y) < _tol;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment