diff options
author | Chris Robinson <[email protected]> | 2018-05-04 02:05:26 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-05-04 02:09:32 -0700 |
commit | 75e2cb97f74aeed2e50e4355607f041414a43976 (patch) | |
tree | 70d5957e9616fccc65b81a1dc4ff62babf1b6b36 /Alc/fpu_modes.h | |
parent | ac8dbd7a56e4ca0ccfbef61b89bdb55775abea6a (diff) |
Don't assume round-to-zero for fastf2i
Diffstat (limited to 'Alc/fpu_modes.h')
-rw-r--r-- | Alc/fpu_modes.h | 17 |
1 files changed, 7 insertions, 10 deletions
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); |