Back to index

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

Go to the source code of this file.

Functions

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 24 of file fgetexcptflg.c.

{
  unsigned long int tmp;

  /* Get the current state.  */
  tmp = __ieee_get_fp_control();

  /* Return that portion that corresponds to the requested exceptions. */
  *flagp = tmp & excepts & SWCR_STATUS_MASK;

  /* Success.  */
  return 0;
}

Here is the call graph for this function:

versioned_symbol ( libm  ,
__fegetexceptflag  ,
fegetexceptflag  ,
GLIBC_2_2   
)