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.

{
  unsigned int new_exc, old_exc;

  /* Get the current control register contents.  */
  __asm__ ("fmove%.l %!,%0" : "=dm" (new_exc));

  old_exc = (new_exc >> 6) & FE_ALL_EXCEPT;

  excepts &= FE_ALL_EXCEPT;

  new_exc |= excepts << 6;
  __asm__ ("fmove%.l %0,%!" : : "dm" (new_exc));

  return old_exc;
}

Here is the call graph for this function: