mirror of
https://github.com/opencv/opencv.git
synced 2026-09-12 21:37:09 -05:00
got rid of std prefix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user