got rid of std prefix

This commit is contained in:
ericmariasis 2024-08-07 00:17:04 -04:00
parent b79b366859
commit 3f92884520

View File

@ -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;
} }