Back to index

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

Go to the source code of this file.

Functions

int fetestexcept (int excepts)

Function Documentation

int fetestexcept ( int  excepts)

Definition at line 24 of file ftestexcept.c.

{
  fenv_t fpsr;

  /* Get current exceptions.  */
  __asm__ __volatile__ ("mov.m %0=ar.fpsr" : "=r" (fpsr));

  return (fpsr >> 13) & excepts & FE_ALL_EXCEPT;
}

Here is the call graph for this function: