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

Unified Diff: fusl/src/math/copysign.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/copysign.c
diff --git a/fusl/src/math/copysign.c b/fusl/src/math/copysign.c
index b09331b6876e74ebb5c12bdc9a0ee183ee5cc136..226d49975856645ef69413f69f47c8689311c2d4 100644
--- a/fusl/src/math/copysign.c
+++ b/fusl/src/math/copysign.c
@@ -1,8 +1,11 @@
#include "libm.h"
double copysign(double x, double y) {
- union {double f; uint64_t i;} ux={x}, uy={y};
- ux.i &= -1ULL/2;
- ux.i |= uy.i & 1ULL<<63;
- return ux.f;
+ union {
+ double f;
+ uint64_t i;
+ } ux = {x}, uy = {y};
+ ux.i &= -1ULL / 2;
+ ux.i |= uy.i & 1ULL << 63;
+ return ux.f;
}

Powered by Google App Engine
This is Rietveld 408576698