mirror of https://github.com/bjornbytes/lovr.git
Add LOVR_USE_SSE;
This commit is contained in:
parent
5e65ac019e
commit
7354465e12
|
@ -22,6 +22,7 @@ option(LOVR_USE_OPENVR "Enable the OpenVR backend for the headset module" ON)
|
|||
option(LOVR_USE_WEBVR "Enable the WebVR backend for the headset module" OFF)
|
||||
option(LOVR_USE_OCULUS "Enable the LibOVR backend for the headset module (be sure to also set LOVR_OCULUS_PATH to point to the Oculus SDK)" OFF)
|
||||
option(LOVR_USE_FAKE_HEADSET "Enable the keyboard/mouse backend for the headset module" ON)
|
||||
option(LOVR_USE_SSE "Enable SIMD use of intrinsics" ON)
|
||||
|
||||
option(LOVR_SYSTEM_PHYSFS "Use the system-provided PhysFS" OFF)
|
||||
option(LOVR_SYSTEM_ASSIMP "Use the system-provided Assimp" OFF)
|
||||
|
@ -58,6 +59,7 @@ if(EMSCRIPTEN)
|
|||
set(LOVR_USE_WEBVR ON)
|
||||
set(LOVR_USE_OPENVR OFF)
|
||||
set(LOVR_USE_OCULUS OFF)
|
||||
set(LOVR_USE_SSE OFF)
|
||||
elseif(UNIX)
|
||||
if(APPLE)
|
||||
set(CMAKE_MACOSX_RPATH 1)
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
#include "math/vec3.h"
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
#ifdef LOVR_USE_SSE
|
||||
#include <xmmintrin.h>
|
||||
#endif
|
||||
|
||||
// m0 m4 m8 m12
|
||||
// m1 m5 m9 m13
|
||||
|
|
Loading…
Reference in New Issue