Back to index

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

Go to the source code of this file.

Functions

int __fesetexceptflag (const fexcept_t *flagp, int excepts)
 versioned_symbol (libm, __fesetexceptflag, fesetexceptflag, GLIBC_2_2)

Function Documentation

int __fesetexceptflag ( const fexcept_t flagp,
int  excepts 
)

Definition at line 24 of file fsetexcptflg.c.

{
  unsigned long int tmp;

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

  /* Set all the bits that were called for.  */
  tmp = (tmp & ~SWCR_STATUS_MASK) | (*flagp & excepts & SWCR_STATUS_MASK);

  /* And store it back.  */
  __ieee_set_fp_control (tmp);

  /* Success.  */
  return 0;
}

Here is the call graph for this function:

versioned_symbol ( libm  ,
__fesetexceptflag  ,
fesetexceptflag  ,
GLIBC_2_2   
)