Back to index

glibc  2.9
Functions
fgetexcptflg.c File Reference
#include <fenv_libc.h>
#include <bp-sym.h>
#include <shlib-compat.h>

Go to the source code of this file.

Functions

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

Function Documentation

int __fegetexceptflag ( fexcept_t flagp,
int  excepts 
)

Definition at line 24 of file fgetexcptflg.c.

{
  fenv_union_t u;

  /* Get the current state.  */
  u.fenv = fegetenv_register ();

  /* Return (all of) it.  */
  *flagp = u.l[1] & excepts & FE_ALL_EXCEPT;

  /* Success.  */
  return 0;
}
versioned_symbol ( libm  ,
BP_SYM(__fegetexceptflag ,
BP_SYM(fegetexceptflag ,
GLIBC_2_2   
)