Skip to content

Commit fdbbb77

Browse files
committed
disable Check_FPU_rounding_mode_is_restored on demand
1 parent 6bf6331 commit fdbbb77

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

Number_types/include/CGAL/test_FPU_rounding_mode_impl.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,13 @@ get_static_check_fpu_rounding_mode_is_restored()
5151
return check_fpu_rounding_mode_is_restored;
5252
}
5353

54+
#ifndef CGAL_DISABLE_ROUNDING_MATH_CHECK
5455
namespace {
5556
CGAL_UNUSED const Check_FPU_rounding_mode_is_restored &
5657
check_fpu_rounding_mode_is_restored
5758
= get_static_check_fpu_rounding_mode_is_restored();
5859
}
60+
#endif
5961

6062
#else
6163

Number_types/test/Number_types/Interval_nt_new.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#define CGAL_DISABLE_ROUNDING_MATH_CHECK 1
12
#include <iostream>
23
#include <CGAL/config.h>
34
#include <CGAL/Interval_nt.h>

0 commit comments

Comments
 (0)