Back to index

glibc  2.9
fgetexcptflg.c File Reference
#include <fenv.h>
#include <fpu_control.h>
#include <shlib-compat.h>

Go to the source code of this file.


int __fegetexceptflag (fexcept_t *flagp, int excepts)
 versioned_symbol (libm, __fegetexceptflag, fegetexceptflag, GLIBC_2_2)

Function Documentation

int __fegetexceptflag ( fexcept_t flagp,
int  excepts 

Definition at line 27 of file fgetexcptflg.c.

  fexcept_t temp;

  /* Get the current exceptions.  */
  _FPU_GETCW (temp);

  /* We only save the relevant bits here. In particular, care has to be 
     taken with the CAUSE bits, as an inadvertent restore later on could
     generate unexpected exceptions.  */

  *flagp = temp & excepts & FE_ALL_EXCEPT;

  /* Success.  */
  return 0;
versioned_symbol ( libm  ,
__fegetexceptflag  ,
fegetexceptflag  ,