From b01e7a6a36111e11f2fe2d31724b5ba6bb3c799b Mon Sep 17 00:00:00 2001 From: jacob1 Date: Mon, 20 Feb 2017 19:15:41 -0500 Subject: [PATCH] put #ifdef around denormal functions, they only exist when using SSE/SSE3 --- src/PowderToySDL.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/PowderToySDL.cpp b/src/PowderToySDL.cpp index f9f6b8ce77..3215ea4b5b 100644 --- a/src/PowderToySDL.cpp +++ b/src/PowderToySDL.cpp @@ -8,8 +8,14 @@ #include #endif #include "SDLCompat.h" + +#ifdef X86_SSE #include +#endif +#ifdef X86_SSE3 #include +#endif + #include #include #include @@ -1084,8 +1090,13 @@ int main(int argc, char * argv[]) signal(SIGABRT, SigHandler); #endif +#ifdef X86_SSE _MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON); +#endif +#ifdef X86_SSE3 _MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_ON); +#error test +#endif GameController * gameController = NULL; #if !defined(DEBUG) && !defined(_DEBUG)