Back to index

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

Go to the source code of this file.

Functions

int fetestexcept (int excepts)

Function Documentation

int fetestexcept ( int  excepts)

Definition at line 25 of file ftestexcept.c.

{
  fexcept_t temp;

  /* Get current exceptions.  */
  _FPU_GETCW (temp);
  temp = (temp >> FPC_DXC_SHIFT) | (temp >> FPC_FLAGS_SHIFT);
  return temp & excepts & FE_ALL_EXCEPT;
}