diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2017-10-14 16:12:18 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2017-10-14 16:12:18 -0700 |
commit | f603d9f2d38a836f452b692c331728ef72a05721 (patch) | |
tree | c2f0641e2996a3e4f62d757b4db08a9a494b09b2 /001help.cc | |
parent | 03dcb7c9400cf6dcf04deb8e1bfa804a9621d0b4 (diff) | |
download | mu-f603d9f2d38a836f452b692c331728ef72a05721.tar.gz |
4063
Diffstat (limited to '001help.cc')
-rw-r--r-- | 001help.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/001help.cc b/001help.cc index 7543205e..45ab7bf1 100644 --- a/001help.cc +++ b/001help.cc @@ -193,14 +193,14 @@ feenableexcept(FE_OVERFLOW | FE_UNDERFLOW); #ifdef __APPLE__ // Public domain polyfill for feenableexcept on OS X // http://www-personal.umich.edu/~williams/archive/computation/fe-handling-example.c -int feenableexcept (unsigned int excepts) { +int feenableexcept(unsigned int excepts) { static fenv_t fenv; unsigned int new_excepts = excepts & FE_ALL_EXCEPT; unsigned int old_excepts; if (fegetenv(&fenv)) return -1; old_excepts = fenv.__control & FE_ALL_EXCEPT; fenv.__control &= ~new_excepts; - fenv.__mxcsr &= ~(new_excepts << 7); + fenv.__mxcsr &= ~(new_excepts << 7); return fesetenv(&fenv) ? -1 : old_excepts; } #endif |