Back to index

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

Go to the source code of this file.


int feenableexcept (int excepts)

Function Documentation

int feenableexcept ( int  excepts)

Definition at line 24 of file feenablxcpt.c.

  unsigned long int new_exc, old_exc;

  new_exc = __ieee_get_fp_control ();

  old_exc = (new_exc & SWCR_ENABLE_MASK) << SWCR_ENABLE_SHIFT;
  new_exc |= (excepts >> SWCR_ENABLE_SHIFT) & SWCR_ENABLE_MASK;

  __ieee_set_fp_control (new_exc);

  return old_exc;

Here is the call graph for this function: