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++
This commit is contained in:
Andreas Fabri 2014-01-15 16:35:14 +01:00
parent 1f9afe3ab0
commit c1f46dc382
1 changed files with 8 additions and 0 deletions

View File

@ -69,6 +69,14 @@
#include <CGAL/export/CGAL.h>
//----------------------------------------------------------------------//
// 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