Back to index

glibc  2.9
Functions
s_casinl.c File Reference
#include <complex.h>
#include <math.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

__complex__ long double __casinl (__complex__ long double x)

Function Documentation

__complex__ long double __casinl ( __complex__ long double  x)

Definition at line 26 of file s_casinl.c.

{
  __complex__ long double res;

  if (isnan (__real__ x) || isnan (__imag__ x))
    {
      if (__real__ x == 0.0)
       {
         res = x;
       }
      else if (__isinfl (__real__ x) || __isinfl (__imag__ x))
       {
         __real__ res = __nanl ("");
         __imag__ res = __copysignl (HUGE_VALL, __imag__ x);
       }
      else
       {
         __real__ res = __nanl ("");
         __imag__ res = __nanl ("");
       }
    }
  else
    {
      __complex__ long double y;

      __real__ y = -__imag__ x;
      __imag__ y = __real__ x;

      y = __casinhl (y);

      __real__ res = __imag__ y;
      __imag__ res = -__real__ y;
    }

  return res;
}

Here is the call graph for this function:

Here is the caller graph for this function: