Add check for SSE2 in light.cc (#328)

This commit is contained in:
Bryan Haley 2022-03-28 22:05:28 -07:00 committed by GitHub
parent 6e96ae7cc2
commit 982ef5276b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@
#include <common/polylib.hh> #include <common/polylib.hh>
#include <common/bsputils.hh> #include <common/bsputils.hh>
#ifdef HAVE_EMBREE #if defined(HAVE_EMBREE) && defined (__SSE2__)
#include <xmmintrin.h> #include <xmmintrin.h>
//#include <pmmintrin.h> //#include <pmmintrin.h>
#endif #endif
@ -255,7 +255,7 @@ LightThread(void *arg)
{ {
const mbsp_t *bsp = (const mbsp_t *)arg; const mbsp_t *bsp = (const mbsp_t *)arg;
#ifdef HAVE_EMBREE #if defined(HAVE_EMBREE) && defined (__SSE2__)
_MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON); _MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
// _MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_ON); // _MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_ON);
#endif #endif