Back to index

glibc  2.9
Functions
fenv.h File Reference
#include <math/fenv.h>

Go to the source code of this file.

Functions

int __feclearexcept (int __excepts)
int __fegetexcept (void)
int __fegetexceptflag (fexcept_t *__flagp, int __excepts)
int __feraiseexcept (int __excepts)
int __fesetexceptflag (__const fexcept_t *__flagp, int __excepts)
int __fegetenv (fenv_t *__envp)
int __fesetenv (__const fenv_t *__envp)
int __feupdateenv (__const fenv_t *__envp)

Function Documentation

int __feclearexcept ( int  __excepts)

Definition at line 25 of file fclrexcpt.c.

{
  /* This always fails.  */
  return 1;
}

Here is the call graph for this function:

int __fegetenv ( fenv_t __envp)

Definition at line 26 of file fegetenv.c.

{
  /* This always fails.  */
  return 1;
}

Here is the call graph for this function:

Here is the caller graph for this function:

int __fegetexcept ( void  )

Definition at line 24 of file fegetexcept.c.

{
  fenv_union_t fe;
  int result = 0;

  fe.fenv = fegetenv_register ();

  if (fe.l[1] & (1 << (31 - FPSCR_XE)))
      result |= FE_INEXACT;
  if (fe.l[1] & (1 << (31 - FPSCR_ZE)))
      result |= FE_DIVBYZERO;
  if (fe.l[1] & (1 << (31 - FPSCR_UE)))
      result |= FE_UNDERFLOW;
  if (fe.l[1] & (1 << (31 - FPSCR_OE)))
      result |= FE_OVERFLOW;
  if (fe.l[1] & (1 << (31 - FPSCR_VE)))
      result |= FE_INVALID;

  return result;
}

Here is the caller graph for this function:

int __fegetexceptflag ( fexcept_t __flagp,
int  __excepts 
)

Definition at line 25 of file fgetexcptflg.c.

{
  /* This always fails.  */
  return 1;
}

Here is the call graph for this function:

int __feraiseexcept ( int  __excepts)

Definition at line 25 of file fraiseexcpt.c.

{
  /* This always fails.  */
  return 1;
}

Here is the call graph for this function:

int __fesetenv ( __const fenv_t __envp)
int __fesetexceptflag ( __const fexcept_t __flagp,
int  __excepts 
)