mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-10 02:16:37 +02:00
put #ifdef around denormal functions, they only exist when using SSE/SSE3
This commit is contained in:
@@ -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