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

Unified Diff: fusl/src/fenv/__flt_rounds.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/fenv/__flt_rounds.c
diff --git a/fusl/src/fenv/__flt_rounds.c b/fusl/src/fenv/__flt_rounds.c
index ec0b3689e5ca2e093a8bac8608f12889b36f18db..4b998e83cb25d3f9045e281931dff973ae5daa7f 100644
--- a/fusl/src/fenv/__flt_rounds.c
+++ b/fusl/src/fenv/__flt_rounds.c
@@ -1,19 +1,22 @@
#include <float.h>
#include <fenv.h>
-int __flt_rounds()
-{
- switch (fegetround()) {
+int __flt_rounds() {
+ switch (fegetround()) {
#ifdef FE_TOWARDZERO
- case FE_TOWARDZERO: return 0;
+ case FE_TOWARDZERO:
+ return 0;
#endif
- case FE_TONEAREST: return 1;
+ case FE_TONEAREST:
+ return 1;
#ifdef FE_UPWARD
- case FE_UPWARD: return 2;
+ case FE_UPWARD:
+ return 2;
#endif
#ifdef FE_DOWNWARD
- case FE_DOWNWARD: return 3;
+ case FE_DOWNWARD:
+ return 3;
#endif
- }
- return -1;
+ }
+ return -1;
}

Powered by Google App Engine
This is Rietveld 408576698