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

Side by Side Diff: fusl/src/math/nearbyintf.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 #include <math.h> 2 #include <math.h>
3 #include "libm.h" 3 #include "libm.h"
4 4
5 float nearbyintf(float x) 5 float nearbyintf(float x) {
6 {
7 #ifdef FE_INEXACT 6 #ifdef FE_INEXACT
8 » PRAGMA_STDC_FENV_ACCESS_ON 7 PRAGMA_STDC_FENV_ACCESS_ON
9 » int e; 8 int e;
10 9
11 » e = fetestexcept(FE_INEXACT); 10 e = fetestexcept(FE_INEXACT);
12 #endif 11 #endif
13 » x = rintf(x); 12 x = rintf(x);
14 #ifdef FE_INEXACT 13 #ifdef FE_INEXACT
15 » if (!e) 14 if (!e)
16 » » feclearexcept(FE_INEXACT); 15 feclearexcept(FE_INEXACT);
17 #endif 16 #endif
18 » return x; 17 return x;
19 } 18 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698