aboutsummaryrefslogtreecommitdiffstats
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
parent2de1d17bc6b07ec4e7680f1c46e147eeaa269f05 (diff)
Don't bother trying _controlfp or __control87_2
-rw-r--r--Alc/fpu_modes.h5
-rw-r--r--Alc/helpers.cpp20
-rw-r--r--CMakeLists.txt5
-rw-r--r--config.h.in6
4 files changed, 0 insertions, 36 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;
}
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9f0dc8ed..ef03e40b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -506,11 +506,6 @@ CHECK_SYMBOL_EXISTS(posix_memalign stdlib.h HAVE_POSIX_MEMALIGN)
CHECK_SYMBOL_EXISTS(_aligned_malloc malloc.h HAVE__ALIGNED_MALLOC)
CHECK_SYMBOL_EXISTS(proc_pidpath libproc.h HAVE_PROC_PIDPATH)
-IF(HAVE_FLOAT_H)
- CHECK_SYMBOL_EXISTS(_controlfp float.h HAVE__CONTROLFP)
- CHECK_SYMBOL_EXISTS(__control87_2 float.h HAVE___CONTROL87_2)
-ENDIF()
-
CHECK_FUNCTION_EXISTS(stat HAVE_STAT)
CHECK_FUNCTION_EXISTS(strcasecmp HAVE_STRCASECMP)
IF(NOT HAVE_STRCASECMP)
diff --git a/config.h.in b/config.h.in
index fb67228a..cf46274d 100644
--- a/config.h.in
+++ b/config.h.in
@@ -158,12 +158,6 @@
/* Define if we have SSE intrinsics */
#cmakedefine HAVE_SSE_INTRINSICS
-/* Define if we have _controlfp() */
-#cmakedefine HAVE__CONTROLFP
-
-/* Define if we have __control87_2() */
-#cmakedefine HAVE___CONTROL87_2
-
/* Define if we have pthread_setschedparam() */
#cmakedefine HAVE_PTHREAD_SETSCHEDPARAM