Back to index

glibc  2.9
Functions
s_casinf.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__ float __casinf (__complex__ float x)

Function Documentation

__complex__ float __casinf ( __complex__ float  x)

Definition at line 26 of file s_casinf.c.

{
  __complex__ float res;

  if (isnan (__real__ x) || isnan (__imag__ x))
    {
      if (__real__ x == 0.0)
       {
         res = x;
       }
      else if (__isinff (__real__ x) || __isinff (__imag__ x))
       {
         __real__ res = __nanf ("");
         __imag__ res = __copysignf (HUGE_VALF, __imag__ x);
       }
      else
       {
         __real__ res = __nanf ("");
         __imag__ res = __nanf ("");
       }
    }
  else
    {
      __complex__ float y;

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

      y = __casinhf (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: