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

Unified Diff: fusl/src/complex/cprojf.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/complex/cprojf.c
diff --git a/fusl/src/complex/cprojf.c b/fusl/src/complex/cprojf.c
index 653be5e87cfcbf2d64f297fe21bed06423aab9e3..0b7464a8d42b0af818adc4dced5362e620eeb9ab 100644
--- a/fusl/src/complex/cprojf.c
+++ b/fusl/src/complex/cprojf.c
@@ -1,8 +1,7 @@
#include "libm.h"
-float complex cprojf(float complex z)
-{
- if (isinf(crealf(z)) || isinf(cimagf(z)))
- return CMPLXF(INFINITY, copysignf(0.0, crealf(z)));
- return z;
+float complex cprojf(float complex z) {
+ if (isinf(crealf(z)) || isinf(cimagf(z)))
+ return CMPLXF(INFINITY, copysignf(0.0, crealf(z)));
+ return z;
}

Powered by Google App Engine
This is Rietveld 408576698