do not change the rounding mode since protector is already created before

This commit is contained in:
Sébastien Loriot 2024-11-15 11:33:51 +01:00
parent 5aec09a838
commit 0b6b64a390
1 changed files with 0 additions and 2 deletions

View File

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