Back to index

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

Go to the source code of this file.

Functions

int feclearexcept (int excepts)

Function Documentation

int feclearexcept ( int  excepts)

Definition at line 25 of file fclrexcpt.c.

{
  fenv_t fpsr;

  /* Get the current state.  */
  __asm__ __volatile__ ("mov.m %0=ar.fpsr" : "=r" (fpsr));

  /* Clear the relevant bits.  */
  fpsr &= ~(((fenv_t) ((excepts & FE_ALL_EXCEPT) << 13)));
  /* Put the new state in effect.  */
  __asm__ __volatile__ ("mov.m ar.fpsr=%0" :: "r" (fpsr) : "memory");

  /* success */
  return 0;
}

Here is the call graph for this function: