Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(471)

Unified Diff: fusl/src/math/nearbyint.c

Issue 1714623002: [fusl] clang-format fusl (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: headers too Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
}

Powered by Google App Engine
This is Rietveld 408576698