Add macro CGAL_MSVC_USE_STD_FABS

On Windows, with MSVC, std::fabs is an intrinsic function with /Oi (implied
with /O1, /O2, and so on) *if* /fp:strict is not used. We should reevaluate
the need to use /fp:strict (and maybe use /fp:precise, the default,
combined with #pragma fenv_access).

First step: bench! This macro will help.
This commit is contained in:
Laurent Rineau 2011-03-21 10:27:07 +00:00
parent a7ea579579
commit 5030f1e929
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ template <> class Real_embeddable_traits< double >
public:
// GCC is faster with std::fabs().
#ifdef __GNUG__
#if defined(__GNUG__) || defined(CGAL_MSVC_USE_STD_FABS)
class Abs
: public std::unary_function< Type, Type > {
public: