Back to index

glibc  2.9
feupdateenv.c File Reference
#include <fenv_libc.h>
#include <shlib-compat.h>

Go to the source code of this file.


int __feupdateenv (const fenv_t *envp)
 versioned_symbol (libm, __feupdateenv, feupdateenv, GLIBC_2_2)

Function Documentation

Definition at line 24 of file feupdateenv.c.

  unsigned long int tmp;

  /* Get the current exception state.  */
  tmp = __ieee_get_fp_control ();

  /* Install new environment.  */
  fesetenv (envp);

  /* Raise the saved exception.  Incidently for us the implementation
     defined format of the values in objects of type fexcept_t is the
     same as the ones specified using the FE_* constants.  */
  feraiseexcept (tmp & SWCR_STATUS_MASK);

  /* Success.  */
  return 0;

Here is the call graph for this function:

versioned_symbol ( libm  ,
__feupdateenv  ,
feupdateenv  ,