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 24 of file ftestexcept.c.

  union { unsigned long long l; unsigned int sw[2] } s;

  /* Get the current status word. */
  __asm__ ("fstd %%fr0,0(%1)       \n\t" 
           "fldd 0(%1),%%fr0       \n\t" 
          : "=m" (s.l) : "r" (&s.l));

  return (s.sw[0] >> 27) & excepts & FE_ALL_EXCEPT;

Here is the call graph for this function: