From f603d9f2d38a836f452b692c331728ef72a05721 Mon Sep 17 00:00:00 2001 From: "Kartik K. Agaram" Date: Sat, 14 Oct 2017 16:12:18 -0700 Subject: 4063 --- 001help.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to '001help.cc') 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 -- cgit 1.4.1-2-gfad0