Skip to content

Commit

Permalink
put #ifdef around denormal functions, they only exist when using SSE/…
Browse files Browse the repository at this point in the history
…SSE3
  • Loading branch information
jacob1 committed Feb 21, 2017
1 parent ca792f1 commit b01e7a6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/PowderToySDL.cpp
Expand Up @@ -8,8 +8,14 @@
#include <direct.h>
#endif
#include "SDLCompat.h"

#ifdef X86_SSE
#include <xmmintrin.h>
#endif
#ifdef X86_SSE3
#include <pmmintrin.h>
#endif

#include <iostream>
#include <sstream>
#include <string>
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b01e7a6

Please sign in to comment.