Back to index

glibc  2.9
feupdateenv.c File Reference
#include <fenv.h>
#include <fpu_control.h>

Go to the source code of this file.


int feupdateenv (const fenv_t *envp)

Function Documentation

int feupdateenv ( const fenv_t envp)

Definition at line 25 of file feupdateenv.c.

  int temp;

  /* Save current exceptions.  */
  _FPU_GETCW (temp);
  temp &= FE_ALL_EXCEPT;

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

  /* Raise the safed 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 (temp);

  /* Success.  */
  return 0;

Here is the call graph for this function: