put #ifdef around denormal functions, they only exist when using SSE/SSE3
This commit is contained in:
parent
ca792f12b5
commit
b01e7a6a36
@ -8,8 +8,14 @@
|
|||||||
#include <direct.h>
|
#include <direct.h>
|
||||||
#endif
|
#endif
|
||||||
#include "SDLCompat.h"
|
#include "SDLCompat.h"
|
||||||
|
|
||||||
|
#ifdef X86_SSE
|
||||||
#include <xmmintrin.h>
|
#include <xmmintrin.h>
|
||||||
|
#endif
|
||||||
|
#ifdef X86_SSE3
|
||||||
#include <pmmintrin.h>
|
#include <pmmintrin.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
#include <string>
|
#include <string>
|
||||||
@ -1084,8 +1090,13 @@ int main(int argc, char * argv[])
|
|||||||
signal(SIGABRT, SigHandler);
|
signal(SIGABRT, SigHandler);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef X86_SSE
|
||||||
_MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
|
_MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
|
||||||
|
#endif
|
||||||
|
#ifdef X86_SSE3
|
||||||
_MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_ON);
|
_MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_ON);
|
||||||
|
#error test
|
||||||
|
#endif
|
||||||
|
|
||||||
GameController * gameController = NULL;
|
GameController * gameController = NULL;
|
||||||
#if !defined(DEBUG) && !defined(_DEBUG)
|
#if !defined(DEBUG) && !defined(_DEBUG)
|
||||||
|
Reference in New Issue
Block a user