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

Side by Side Diff: fusl/src/complex/cacos.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: Hull et al. "Implementing the complex arcsine and arccosine functions using exception handling" 1997 3 // FIXME: Hull et al. "Implementing the complex arcsine and arccosine functions
4 // using exception handling" 1997
4 5
5 /* acos(z) = pi/2 - asin(z) */ 6 /* acos(z) = pi/2 - asin(z) */
6 7
7 double complex cacos(double complex z) 8 double complex cacos(double complex z) {
8 { 9 z = casin(z);
9 » z = casin(z); 10 return CMPLX(M_PI_2 - creal(z), -cimag(z));
10 » return CMPLX(M_PI_2 - creal(z), -cimag(z));
11 } 11 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698