From c1f46dc382028a9e3c2591a128b79ddfa6b6e1ba Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Wed, 15 Jan 2014 16:35:14 +0100 Subject: [PATCH] As std::fabs is slow on Windows, we switch to an implementation using sse2. This version is already in CGAL, but it is protected with an #ifdef So this commit consists of a #define for VC++ --- Installation/include/CGAL/config.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Installation/include/CGAL/config.h b/Installation/include/CGAL/config.h index 9dcf7df5e06..f40beed429a 100644 --- a/Installation/include/CGAL/config.h +++ b/Installation/include/CGAL/config.h @@ -69,6 +69,14 @@ #include +//----------------------------------------------------------------------// +// Use an implementation of fabs with sse2 on Windows +//----------------------------------------------------------------------// + +#if defined( _MSC_VER ) +#define CGAL_USE_SSE2_FABS +#endif + //----------------------------------------------------------------------// // Detect features at compile-time. Some macros have only been // introduced as of Boost 1.40. In that case, we simply say that the