Back to index

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

Go to the source code of this file.

Functions

int __feclearexcept (int excepts)
 versioned_symbol (libm, __feclearexcept, feclearexcept, GLIBC_2_2)

Function Documentation

int __feclearexcept ( int  excepts)

Definition at line 24 of file fclrexcpt.c.

{
  unsigned long int temp;

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

  /* Get the current floating point status. */
  _FPU_GETCW (temp);

  /* Clear the relevant bits.  */
  temp &= excepts ^ FE_ALL_EXCEPT;

  /* Put the new data in effect.  */
  _FPU_SETCW (temp);

  /* Success.  */
  return 0;
}
versioned_symbol ( libm  ,
__feclearexcept  ,
feclearexcept  ,
GLIBC_2_2   
)