Back to index

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

Go to the source code of this file.


int fetestexcept (int excepts)

Function Documentation

int fetestexcept ( int  excepts)

Definition at line 23 of file ftestexcept.c.

  int temp;
  unsigned int mxscr;

  /* Get current exceptions.  */
  __asm__ ("fnstsw %0\n"
          "stmxcsr %1" : "=m" (*&temp), "=m" (*&mxscr));

  return (temp | mxscr) & excepts & FE_ALL_EXCEPT;

Here is the call graph for this function:

Here is the caller graph for this function: