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

Side by Side Diff: fusl/src/math/nearbyintf.c

Issue 1581793002: Remove -Wno-unknown-pragmas from fusl build (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: comment to clang bug Created 4 years, 11 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
« no previous file with comments | « fusl/src/math/nearbyint.c ('k') | fusl/src/math/nearbyintl.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #include <fenv.h> 1 #include <fenv.h>
2 #include <math.h> 2 #include <math.h>
3 #include "libm.h"
3 4
4 float nearbyintf(float x) 5 float nearbyintf(float x)
5 { 6 {
6 #ifdef FE_INEXACT 7 #ifdef FE_INEXACT
7 » #pragma STDC FENV_ACCESS ON 8 » PRAGMA_STDC_FENV_ACCESS_ON
8 int e; 9 int e;
9 10
10 e = fetestexcept(FE_INEXACT); 11 e = fetestexcept(FE_INEXACT);
11 #endif 12 #endif
12 x = rintf(x); 13 x = rintf(x);
13 #ifdef FE_INEXACT 14 #ifdef FE_INEXACT
14 if (!e) 15 if (!e)
15 feclearexcept(FE_INEXACT); 16 feclearexcept(FE_INEXACT);
16 #endif 17 #endif
17 return x; 18 return x;
18 } 19 }
OLDNEW
« no previous file with comments | « fusl/src/math/nearbyint.c ('k') | fusl/src/math/nearbyintl.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698