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

Unified Diff: fusl/src/complex/casinf.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/casinf.c
diff --git a/fusl/src/complex/casinf.c b/fusl/src/complex/casinf.c
index 93f0e335092b02241445a50461c70e88b6295594..a84b7ad67507bfe93e00019fb95ba9ca01fa8d3b 100644
--- a/fusl/src/complex/casinf.c
+++ b/fusl/src/complex/casinf.c
@@ -2,13 +2,12 @@
// FIXME
-float complex casinf(float complex z)
-{
- float complex w;
- float x, y;
+float complex casinf(float complex z) {
+ float complex w;
+ float x, y;
- x = crealf(z);
- y = cimagf(z);
- w = CMPLXF(1.0 - (x - y)*(x + y), -2.0*x*y);
- return clogf(CMPLXF(-y, x) + csqrtf(w));
+ x = crealf(z);
+ y = cimagf(z);
+ w = CMPLXF(1.0 - (x - y) * (x + y), -2.0 * x * y);
+ return clogf(CMPLXF(-y, x) + csqrtf(w));
}

Powered by Google App Engine
This is Rietveld 408576698