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

Unified Diff: fusl/src/math/nearbyintl.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/nearbyintl.c
diff --git a/fusl/src/math/nearbyintl.c b/fusl/src/math/nearbyintl.c
index 82aeadd275cbb9bc74547410307cb52a0465269d..89f6700b16711c8060a548666dc714214a238602 100644
--- a/fusl/src/math/nearbyintl.c
+++ b/fusl/src/math/nearbyintl.c
@@ -3,25 +3,23 @@
#include "libm.h"
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
-long double nearbyintl(long double x)
-{
- return nearbyint(x);
+long double nearbyintl(long double x) {
+ return nearbyint(x);
}
#else
#include <fenv.h>
-long double nearbyintl(long double x)
-{
+long double nearbyintl(long 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 = rintl(x);
+ x = rintl(x);
#ifdef FE_INEXACT
- if (!e)
- feclearexcept(FE_INEXACT);
+ if (!e)
+ feclearexcept(FE_INEXACT);
#endif
- return x;
+ return x;
}
#endif

Powered by Google App Engine
This is Rietveld 408576698