Back to index

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

Go to the source code of this file.


int fedisableexcept (int excepts)

Function Documentation

int fedisableexcept ( int  excepts)

Definition at line 24 of file fedisblxcpt.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: