Skip to content
Snippets Groups Projects
Commit c7b2847e authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Enclose windows-specific code in #if block

parent 58ee2daf
No related branches found
No related tags found
No related merge requests found
...@@ -60,8 +60,10 @@ class LLVector4a ...@@ -60,8 +60,10 @@ class LLVector4a
// Call initClass() at startup to avoid 15,000+ cycle penalties from denormalized numbers // Call initClass() at startup to avoid 15,000+ cycle penalties from denormalized numbers
static void initClass() static void initClass()
{ {
#if LL_WINDOWS
unsigned int current_word = 0; unsigned int current_word = 0;
_controlfp_s(&current_word, _DN_FLUSH, _MCW_DN); _controlfp_s(&current_word, _DN_FLUSH, _MCW_DN);
#endif
_MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_ON); _MM_SET_DENORMALS_ZERO_MODE(_MM_DENORMALS_ZERO_ON);
_MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON); _MM_SET_FLUSH_ZERO_MODE(_MM_FLUSH_ZERO_ON);
_MM_SET_ROUNDING_MODE(_MM_ROUND_NEAREST); _MM_SET_ROUNDING_MODE(_MM_ROUND_NEAREST);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment