| Index: fusl/src/math/nearbyint.c
|
| diff --git a/fusl/src/math/nearbyint.c b/fusl/src/math/nearbyint.c
|
| index b1c867f6b729fdaab34d2af15ca98bc8e4d688c0..6fc574e018c9d7b87be1cbf92560337161655553 100644
|
| --- a/fusl/src/math/nearbyint.c
|
| +++ b/fusl/src/math/nearbyint.c
|
| @@ -4,18 +4,17 @@
|
|
|
| /* nearbyint is the same as rint, but it must not raise the inexact exception */
|
|
|
| -double nearbyint(double x)
|
| -{
|
| +double nearbyint(double x) {
|
| #ifdef FE_INEXACT
|
| - PRAGMA_STDC_FENV_ACCESS_ON
|
| - int e;
|
| + PRAGMA_STDC_FENV_ACCESS_ON
|
| + int e;
|
|
|
| - e = fetestexcept(FE_INEXACT);
|
| + e = fetestexcept(FE_INEXACT);
|
| #endif
|
| - x = rint(x);
|
| + x = rint(x);
|
| #ifdef FE_INEXACT
|
| - if (!e)
|
| - feclearexcept(FE_INEXACT);
|
| + if (!e)
|
| + feclearexcept(FE_INEXACT);
|
| #endif
|
| - return x;
|
| + return x;
|
| }
|
|
|