Back to index

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

  fenv_t fpsr;

  /* Get the current exception state.  */
  __asm__ __volatile__ ("mov.m %0=ar.fpsr" : "=r" (fpsr));

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

  /* Raise the saved exceptions.  */
  feraiseexcept ((int) (fpsr >> 13) & FE_ALL_EXCEPT);

  /* Success.  */
  return 0;

Here is the call graph for this function: