Merge pull request #8611 from sloriot/NT-sqrt_rounding

Remove extra rounding mode changes for sqrt for interval
This commit is contained in:
Sébastien Loriot 2024-11-15 11:41:23 +01:00
commit 1f9ac79f75
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
}