source: asp3_tinet_ecnl_arm/trunk/musl-1.1.18/src/complex/casinf.c@ 352

Last change on this file since 352 was 352, checked in by coas-nagasima, 6 years ago

arm向けASP3版ECNLを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-csrc;charset=UTF-8
File size: 223 bytes
Line 
1#include "libm.h"
2
3// FIXME
4
5float complex casinf(float complex z)
6{
7 float complex w;
8 float x, y;
9
10 x = crealf(z);
11 y = cimagf(z);
12 w = CMPLXF(1.0 - (x - y)*(x + y), -2.0*x*y);
13 return clogf(CMPLXF(-y, x) + csqrtf(w));
14}
Note: See TracBrowser for help on using the repository browser.