Back to index

glibc  2.9
Functions
fraiseexcpt.c File Reference
#include <fenv.h>
#include <fpu_control.h>
#include <math.h>
#include <shlib-compat.h>

Go to the source code of this file.

Functions

int __feraiseexcept (int excepts)

Function Documentation

int __feraiseexcept ( int  excepts)

Definition at line 25 of file fraiseexcpt.c.

{
  /* Raise exceptions represented by EXPECTS.  */
  fexcept_t temp;
  _FPU_GETCW (temp);
  temp |= (excepts & FE_ALL_EXCEPT);
  _FPU_SETCW (temp);

  /* Success.  */
  return 0;
}