From 75e2cb97f74aeed2e50e4355607f041414a43976 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 4 May 2018 02:05:26 -0700 Subject: Don't assume round-to-zero for fastf2i --- Alc/fpu_modes.h | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'Alc/fpu_modes.h') diff --git a/Alc/fpu_modes.h b/Alc/fpu_modes.h index 750252fc..eb305967 100644 --- a/Alc/fpu_modes.h +++ b/Alc/fpu_modes.h @@ -7,16 +7,13 @@ typedef struct FPUCtl { -#ifdef HAVE_FENV_H - fenv_t flt_env; -#ifdef _WIN32 - int round_mode; -#endif -#else - int state; -#endif -#ifdef HAVE_SSE - int sse_state; +#if 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 } FPUCtl; void SetMixerFPUMode(FPUCtl *ctl); -- cgit v1.2.3