Back to index

glibc  2.9
feupdateenv.c File Reference
#include <fenv_libc.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 26 of file feupdateenv.c.

  fexcept_t temp;

  _FPU_GETCW (temp);
  temp = (temp & FPC_FLAGS_MASK) >> FPC_FLAGS_SHIFT;

  /* Raise the exceptions since the last call to feholdenv  */
  /* re install saved environment.  */
  fesetenv (envp);
  feraiseexcept ((int) temp);

  /* Success.  */
  return 0;

Here is the call graph for this function: