Back to index

glibc  2.9
feholdexcpt.c File Reference
#include "soft-fp.h"
#include "soft-supp.h"

Go to the source code of this file.


int feholdexcept (fenv_t *envp)

Function Documentation

int feholdexcept ( fenv_t envp)

Definition at line 26 of file feholdexcpt.c.

  fenv_union_t u;

  /* Get the current state.  */
  __fegetenv (envp);

  u.fenv = *envp;
  /* Clear everything except the rounding mode.  */
  u.l[0] &= 0x3;
  /* Disable exceptions */
  u.l[1] = FE_ALL_EXCEPT;

  /* Put the new state in effect.  */
  fesetenv (&u.fenv);

  return 0;

Here is the call graph for this function: