aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
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
parent2de1d17bc6b07ec4e7680f1c46e147eeaa269f05 (diff)
Don't bother trying _controlfp or __control87_2
Diffstat (limited to 'Alc')
-rw-r--r--Alc/fpu_modes.h5
-rw-r--r--Alc/helpers.cpp20
2 files changed, 0 insertions, 25 deletions
diff --git a/Alc/fpu_modes.h b/Alc/fpu_modes.h
index 8261692e..73e75965 100644
--- a/Alc/fpu_modes.h
+++ b/Alc/fpu_modes.h
@@ -4,11 +4,6 @@
class FPUCtl {
#if defined(HAVE_SSE_INTRINSICS) || (defined(__GNUC__) && defined(HAVE_SSE))
unsigned int sse_state{};
-#elif defined(HAVE___CONTROL87_2)
- unsigned int state{};
- unsigned int sse_state{};
-#elif defined(HAVE__CONTROLFP)
- unsigned int state{};
#endif
bool in_mode{};
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;
}