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

Side by Side Diff: fusl/src/math/scalblnl.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 <limits.h> 1 #include <limits.h>
2 #include <math.h> 2 #include <math.h>
3 #include <float.h> 3 #include <float.h>
4 4
5 #if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024 5 #if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
6 long double scalblnl(long double x, long n) 6 long double scalblnl(long double x, long n) {
7 { 7 return scalbln(x, n);
8 » return scalbln(x, n);
9 } 8 }
10 #else 9 #else
11 long double scalblnl(long double x, long n) 10 long double scalblnl(long double x, long n) {
12 { 11 if (n > INT_MAX)
13 » if (n > INT_MAX) 12 n = INT_MAX;
14 » » n = INT_MAX; 13 else if (n < INT_MIN)
15 » else if (n < INT_MIN) 14 n = INT_MIN;
16 » » n = INT_MIN; 15 return scalbnl(x, n);
17 » return scalbnl(x, n);
18 } 16 }
19 #endif 17 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698