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

Side by Side Diff: fusl/src/fenv/fesetround.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 unified diff | Download patch
OLDNEW
1 #include <fenv.h> 1 #include <fenv.h>
2 2
3 /* __fesetround wrapper for arch independent argument check */ 3 /* __fesetround wrapper for arch independent argument check */
4 4
5 int __fesetround(int); 5 int __fesetround(int);
6 6
7 int fesetround(int r) 7 int fesetround(int r) {
8 { 8 if (r &
9 » if (r & ~( 9 ~(FE_TONEAREST
10 » » FE_TONEAREST
11 #ifdef FE_DOWNWARD 10 #ifdef FE_DOWNWARD
12 » » |FE_DOWNWARD 11 | FE_DOWNWARD
13 #endif 12 #endif
14 #ifdef FE_UPWARD 13 #ifdef FE_UPWARD
15 » » |FE_UPWARD 14 | FE_UPWARD
16 #endif 15 #endif
17 #ifdef FE_TOWARDZERO 16 #ifdef FE_TOWARDZERO
18 » » |FE_TOWARDZERO 17 | FE_TOWARDZERO
19 #endif 18 #endif
20 » » )) 19 ))
21 » » return -1; 20 return -1;
22 » return __fesetround(r); 21 return __fesetround(r);
23 } 22 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698