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

Unified Diff: fusl/src/complex/casinl.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/casinl.c
diff --git a/fusl/src/complex/casinl.c b/fusl/src/complex/casinl.c
index 0916c60f2a6b3c7eeb71d74c4cff06a5a1273fae..42c52cca156a0644878446797957083d3e5dc629 100644
--- a/fusl/src/complex/casinl.c
+++ b/fusl/src/complex/casinl.c
@@ -1,20 +1,18 @@
#include "libm.h"
#if LDBL_MANT_DIG == 53 && LDBL_MAX_EXP == 1024
-long double complex casinl(long double complex z)
-{
- return casin(z);
+long double complex casinl(long double complex z) {
+ return casin(z);
}
#else
// FIXME
-long double complex casinl(long double complex z)
-{
- long double complex w;
- long double x, y;
+long double complex casinl(long double complex z) {
+ long double complex w;
+ long double x, y;
- x = creall(z);
- y = cimagl(z);
- w = CMPLXL(1.0 - (x - y)*(x + y), -2.0*x*y);
- return clogl(CMPLXL(-y, x) + csqrtl(w));
+ x = creall(z);
+ y = cimagl(z);
+ w = CMPLXL(1.0 - (x - y) * (x + y), -2.0 * x * y);
+ return clogl(CMPLXL(-y, x) + csqrtl(w));
}
#endif

Powered by Google App Engine
This is Rietveld 408576698