aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/helpers.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-03-18 20:27:25 -0700
committerChris Robinson <[email protected]>2019-03-18 20:27:25 -0700
commit73a43fb19c2f8eeb724094ec0fb84088513450f7 (patch)
tree314d3ae6707865afbafde7ec65a700762c1770b5 /Alc/helpers.cpp
parent2de1d17bc6b07ec4e7680f1c46e147eeaa269f05 (diff)
Don't bother trying _controlfp or __control87_2
Diffstat (limited to 'Alc/helpers.cpp')
-rw-r--r--Alc/helpers.cpp20
1 files changed, 0 insertions, 20 deletions
diff --git a/Alc/helpers.cpp b/Alc/helpers.cpp
index d5bbde1d..29b613cc 100644
--- a/Alc/helpers.cpp
+++ b/Alc/helpers.cpp
@@ -282,16 +282,6 @@ FPUCtl::FPUCtl() noexcept
sseState |= 0x0040; /* set denormals-are-zero */
__asm__ __volatile__("ldmxcsr %0" : : "m" (*&sseState));
}
-
-#elif defined(HAVE___CONTROL87_2)
-
- __control87_2(0, 0, &this->state, &this->sse_state);
- _control87(_DN_FLUSH, _MCW_DN);
-
-#elif defined(HAVE__CONTROLFP)
-
- this->state = _controlfp(0, 0);
- _controlfp(_DN_FLUSH, _MCW_DN);
#endif
this->in_mode = true;
@@ -308,16 +298,6 @@ void FPUCtl::leave() noexcept
if((CPUCapFlags&CPU_CAP_SSE))
__asm__ __volatile__("ldmxcsr %0" : : "m" (*&this->sse_state));
-
-#elif defined(HAVE___CONTROL87_2)
-
- unsigned int mode;
- __control87_2(this->state, _MCW_DN, &mode, nullptr);
- __control87_2(this->sse_state, _MCW_DN, nullptr, &mode);
-
-#elif defined(HAVE__CONTROLFP)
-
- _controlfp(this->state, _MCW_DN);
#endif
this->in_mode = false;
}