aboutsummaryrefslogtreecommitdiffstats
path: root/OpenAL32/Include/alMain.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-01-11 08:44:52 -0800
committerChris Robinson <[email protected]>2018-01-11 08:44:52 -0800
commit15ad5245bfa498dff729d2bb1cd91fad161cc806 (patch)
treeb5f0d36fe916d81e498c7c18278ed7b40f7cf00d /OpenAL32/Include/alMain.h
parent8aa9e35f8c743c1336142a0a49eaeee19a6d33d3 (diff)
Move the FPU mode declarations to a separate header
Also don't use inheritance with FPUCtl.
Diffstat (limited to 'OpenAL32/Include/alMain.h')
-rw-r--r--OpenAL32/Include/alMain.h32
1 files changed, 0 insertions, 32 deletions
diff --git a/OpenAL32/Include/alMain.h b/OpenAL32/Include/alMain.h
index ea797053..5b4519eb 100644
--- a/OpenAL32/Include/alMain.h
+++ b/OpenAL32/Include/alMain.h
@@ -13,10 +13,6 @@
#include <strings.h>
#endif
-#ifdef HAVE_FENV_H
-#include <fenv.h>
-#endif
-
#include "AL/al.h"
#include "AL/alc.h"
#include "AL/alext.h"
@@ -803,34 +799,6 @@ void ALCcontext_DeferUpdates(ALCcontext *context);
void ALCcontext_ProcessUpdates(ALCcontext *context);
-typedef struct {
-#ifdef HAVE_FENV_H
- DERIVE_FROM_TYPE(fenv_t);
-#ifdef _WIN32
- int round_mode;
-#endif
-#else
- int state;
-#endif
-#ifdef HAVE_SSE
- int sse_state;
-#endif
-} FPUCtl;
-void SetMixerFPUMode(FPUCtl *ctl);
-void RestoreFPUMode(const FPUCtl *ctl);
-#ifdef __GNUC__
-/* Use an alternate macro set with GCC to avoid accidental continue or break
- * statements within the mixer mode.
- */
-#define START_MIXER_MODE() __extension__({ FPUCtl _oldMode; SetMixerFPUMode(&_oldMode);
-#define END_MIXER_MODE() RestoreFPUMode(&_oldMode); })
-#else
-#define START_MIXER_MODE() do { FPUCtl _oldMode; SetMixerFPUMode(&_oldMode);
-#define END_MIXER_MODE() RestoreFPUMode(&_oldMode); } while(0)
-#endif
-#define LEAVE_MIXER_MODE() RestoreFPUMode(&_oldMode)
-
-
typedef struct ll_ringbuffer ll_ringbuffer_t;
typedef struct ll_ringbuffer_data {
char *buf;