Back to index

glibc  2.9
Functions
fgetexcptflg.c File Reference
#include <fenv.h>

Go to the source code of this file.

Functions

int fegetexceptflag (fexcept_t *flagp, int excepts)

Function Documentation

int fegetexceptflag ( fexcept_t flagp,
int  excepts 
)

Definition at line 24 of file fgetexcptflg.c.

{
  fenv_t fpsr;

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

  *flagp = (fexcept_t) ((fpsr >> 13) & excepts & FE_ALL_EXCEPT);

  /* Success.  */
  return 0;
}

Here is the call graph for this function: