From 0b6b64a39001c7b2b09fb7a1abf1efc834696422 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Fri, 15 Nov 2024 11:33:51 +0100 Subject: [PATCH] do not change the rounding mode since protector is already created before --- Number_types/include/CGAL/FPU.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/Number_types/include/CGAL/FPU.h b/Number_types/include/CGAL/FPU.h index 927c2d4e29e..7fd7974437c 100644 --- a/Number_types/include/CGAL/FPU.h +++ b/Number_types/include/CGAL/FPU.h @@ -618,9 +618,7 @@ inline double IA_sqrt_toward_zero(double d) { #ifdef CGAL_ALWAYS_ROUND_TO_NEAREST return (d > 0.0) ? nextafter(std::sqrt(d), 0.) : 0.0; #else - FPU_set_cw(CGAL_FE_DOWNWARD); double i = (d > 0.0) ? CGAL_IA_FORCE_TO_DOUBLE(CGAL_BUG_SQRT(CGAL_IA_STOP_CPROP(d))) : 0.0; - FPU_set_cw(CGAL_FE_UPWARD); return i; #endif }