mirror of
https://github.com/opencv/opencv.git
synced 2025-06-07 17:44:04 +08:00
Merge pull request #26004 from ericmariasis:eric-mariasis-issue-26000
got rid of std prefix
This commit is contained in:
commit
67d0338c9c
@ -1738,10 +1738,10 @@ struct RoundFunctor : public BaseDefaultFunctor<RoundFunctor>
|
|||||||
inline float calculate(float x) const
|
inline float calculate(float x) const
|
||||||
{
|
{
|
||||||
// Rounds to even numbers in halfway cases, so 2.5 -> 2, -2.5 -> -2
|
// Rounds to even numbers in halfway cases, so 2.5 -> 2, -2.5 -> -2
|
||||||
int old_rounding_direction = std::fegetround();
|
int old_rounding_direction = fegetround();
|
||||||
std::fesetround(FE_TONEAREST);
|
fesetround(FE_TONEAREST);
|
||||||
float y = std::nearbyint(x);
|
float y = std::nearbyint(x);
|
||||||
std::fesetround(old_rounding_direction);
|
fesetround(old_rounding_direction);
|
||||||
return y;
|
return y;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user