mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 03:00:14 +08:00
got rid of std prefix
This commit is contained in:
parent
b79b366859
commit
3f92884520
@ -1738,10 +1738,10 @@ struct RoundFunctor : public BaseDefaultFunctor<RoundFunctor>
|
||||
inline float calculate(float x) const
|
||||
{
|
||||
// Rounds to even numbers in halfway cases, so 2.5 -> 2, -2.5 -> -2
|
||||
int old_rounding_direction = std::fegetround();
|
||||
std::fesetround(FE_TONEAREST);
|
||||
int old_rounding_direction = fegetround();
|
||||
fesetround(FE_TONEAREST);
|
||||
float y = std::nearbyint(x);
|
||||
std::fesetround(old_rounding_direction);
|
||||
fesetround(old_rounding_direction);
|
||||
return y;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user