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

Side by Side Diff: fusl/src/complex/casin.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 unified diff | Download patch
OLDNEW
1 #include "libm.h" 1 #include "libm.h"
2 2
3 // FIXME 3 // FIXME
4 4
5 /* asin(z) = -i log(i z + sqrt(1 - z*z)) */ 5 /* asin(z) = -i log(i z + sqrt(1 - z*z)) */
6 6
7 double complex casin(double complex z) 7 double complex casin(double complex z) {
8 { 8 double complex w;
9 » double complex w; 9 double x, y;
10 » double x, y;
11 10
12 » x = creal(z); 11 x = creal(z);
13 » y = cimag(z); 12 y = cimag(z);
14 » w = CMPLX(1.0 - (x - y)*(x + y), -2.0*x*y); 13 w = CMPLX(1.0 - (x - y) * (x + y), -2.0 * x * y);
15 » return clog(CMPLX(-y, x) + csqrt(w)); 14 return clog(CMPLX(-y, x) + csqrt(w));
16 } 15 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698