Back to index

glibc  2.9
ftestexcept.c File Reference
#include <fenv_libc.h>

Go to the source code of this file.


int fetestexcept (int excepts)

Function Documentation

int fetestexcept ( int  excepts)

Definition at line 23 of file ftestexcept.c.

  fenv_union_t u;

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

  /* The FE_INVALID bit is dealt with correctly by the hardware, so we can
     just:  */
  return u.l[1] & excepts;