put #ifdef around denormal functions, they only exist when using SSE/SSE3

This commit is contained in:
jacob1 2017-02-20 19:15:41 -05:00
parent ca792f12b5
commit b01e7a6a36

View File

@ -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>
@ -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)