From 08d1f279b049008a84f6a43de3b91e7adc1a19ff Mon Sep 17 00:00:00 2001 From: Sylvain Pion Date: Sun, 15 Jun 2008 18:31:52 +0000 Subject: [PATCH] - Stop g++ 4.3.1 -O2 constant propagation using CGAL_IA_STOP_CPROP(). - Remove unused function FPU_empiric_test_mul(). --- .../test/Number_types/rounding_modes.cpp | 20 +------------------ 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/Number_types/test/Number_types/rounding_modes.cpp b/Number_types/test/Number_types/rounding_modes.cpp index c9a054df778..7892a99a83b 100644 --- a/Number_types/test/Number_types/rounding_modes.cpp +++ b/Number_types/test/Number_types/rounding_modes.cpp @@ -26,7 +26,7 @@ double IA_min_double; CGAL::FPU_CW_t FPU_empiric_test() { - IA_min_double = CGAL_IA_MIN_DOUBLE; + IA_min_double = CGAL_IA_STOP_CPROP(CGAL_IA_MIN_DOUBLE); double y = 1.0, z = -1.0; double ye, ze; ye = y - IA_min_double; @@ -37,24 +37,6 @@ FPU_empiric_test() return CGAL_FE_TOWARDZERO; } -// This variable is global in order to stop constant propagation. -double m = 0.5; - -CGAL::FPU_CW_t FPU_empiric_test_mul () -{ - int i; - for (i=0; i<10; i++) {m*=m; /* std::cout <