Back to index

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

Go to the source code of this file.

Functions

int fedisableexcept (int excepts)

Function Documentation

int fedisableexcept ( int  excepts)

Definition at line 24 of file fedisblxcpt.c.

{
  unsigned int old_exc, new_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: