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

Unified Diff: fusl/src/math/__fpclassify.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/math/__fpclassify.c
diff --git a/fusl/src/math/__fpclassify.c b/fusl/src/math/__fpclassify.c
index f7c0e2dfac828616b43f76664c6821de1b348f8d..17ee9db4c952684779b627148c00d7c21413f750 100644
--- a/fusl/src/math/__fpclassify.c
+++ b/fusl/src/math/__fpclassify.c
@@ -1,11 +1,15 @@
#include <math.h>
#include <stdint.h>
-int __fpclassify(double x)
-{
- union {double f; uint64_t i;} u = {x};
- int e = u.i>>52 & 0x7ff;
- if (!e) return u.i<<1 ? FP_SUBNORMAL : FP_ZERO;
- if (e==0x7ff) return u.i<<12 ? FP_NAN : FP_INFINITE;
- return FP_NORMAL;
+int __fpclassify(double x) {
+ union {
+ double f;
+ uint64_t i;
+ } u = {x};
+ int e = u.i >> 52 & 0x7ff;
+ if (!e)
+ return u.i << 1 ? FP_SUBNORMAL : FP_ZERO;
+ if (e == 0x7ff)
+ return u.i << 12 ? FP_NAN : FP_INFINITE;
+ return FP_NORMAL;
}

Powered by Google App Engine
This is Rietveld 408576698