Back to index

glibc  2.9
fclrexcpt.c File Reference
#include <fenv.h>
#include <fpu_control.h>

Go to the source code of this file.


int feclearexcept (int excepts)

Function Documentation

int feclearexcept ( int  excepts)

Definition at line 25 of file fclrexcpt.c.

  int cw;

  /* Mask out unsupported bits/exceptions.  */
  excepts &= FE_ALL_EXCEPT;

  /* Read the complete control word.  */
  _FPU_GETCW (cw);

  /* Clear exception bits.  */
  cw &= ~excepts;
  /* Put the new data in effect.  */
  _FPU_SETCW (cw);

  return 0;