Back to index

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

Go to the source code of this file.

Functions

int feenableexcept (int excepts)

Function Documentation

int feenableexcept ( int  excepts)

Definition at line 24 of file feenablxcpt.c.

{
  fenv_t new_exc, old_exc;

  __fenv_stfsr (new_exc);

  old_exc = (new_exc >> 18) & FE_ALL_EXCEPT;
  new_exc |= (((fenv_t)excepts & FE_ALL_EXCEPT) << 18);

  __fenv_ldfsr (new_exc);

  return old_exc;
}