Back to index

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

Go to the source code of this file.

Functions

int feholdexcept (fenv_t *envp)

Function Documentation

int feholdexcept ( fenv_t envp)

Definition at line 24 of file feholdexcpt.c.

{
  unsigned long int temp;

  /* Store the environment.  */
  _FPU_GETCW(temp);
  envp->__cw = temp;

  /* Now set all exceptions to non-stop.  */
  temp &= ~(FE_ALL_EXCEPT << FE_EXCEPT_SHIFT);
  _FPU_SETCW(temp);

  return 0;
}