From 3f92884520b352a1d27e4fea49d4b9b0a8c18851 Mon Sep 17 00:00:00 2001 From: ericmariasis Date: Wed, 7 Aug 2024 00:17:04 -0400 Subject: [PATCH] got rid of std prefix --- modules/dnn/src/layers/elementwise_layers.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/dnn/src/layers/elementwise_layers.cpp b/modules/dnn/src/layers/elementwise_layers.cpp index 6c06554d5f..4ee7a2cf1d 100644 --- a/modules/dnn/src/layers/elementwise_layers.cpp +++ b/modules/dnn/src/layers/elementwise_layers.cpp @@ -1738,10 +1738,10 @@ struct RoundFunctor : public BaseDefaultFunctor 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; }