mirror of https://github.com/CGAL/cgal
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:
parent
1f9afe3ab0
commit
c1f46dc382
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue