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

Unified Diff: fusl/src/math/fabsf.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/fabsf.c
diff --git a/fusl/src/math/fabsf.c b/fusl/src/math/fabsf.c
index 4efc8d686dcc49e9c4d1c1af5159f042bf5a90d5..55c8b296d4d7357bc6f622ff5358093b650c55c7 100644
--- a/fusl/src/math/fabsf.c
+++ b/fusl/src/math/fabsf.c
@@ -1,9 +1,11 @@
#include <math.h>
#include <stdint.h>
-float fabsf(float x)
-{
- union {float f; uint32_t i;} u = {x};
- u.i &= 0x7fffffff;
- return u.f;
+float fabsf(float x) {
+ union {
+ float f;
+ uint32_t i;
+ } u = {x};
+ u.i &= 0x7fffffff;
+ return u.f;
}

Powered by Google App Engine
This is Rietveld 408576698