Back to index

glibc  2.9
Functions
fgetexcptflg.c File Reference
#include <fenv.h>
#include <fpu_control.h>
#include <unistd.h>
#include <ldsodefs.h>
#include <dl-procinfo.h>
#include <sysdep.h>
#include <shlib-compat.h>

Go to the source code of this file.

Functions

int __fegetexceptflag (fexcept_t *flagp, int excepts)
 versioned_symbol (libm, __fegetexceptflag, fegetexceptflag, GLIBC_2_2)

Function Documentation

int __fegetexceptflag ( fexcept_t flagp,
int  excepts 
)

Definition at line 30 of file fgetexcptflg.c.

{
  if (GLRO (dl_hwcap) & HWCAP_ARM_VFP)
    {
      unsigned long temp;

      /* Get the current exceptions.  */
      _FPU_GETCW (temp);

      *flagp = temp & excepts & FE_ALL_EXCEPT;

      /* Success.  */
      return 0;
    }

  /* Unsupported, so fail.  */
  return 1;
}
versioned_symbol ( libm  ,
__fegetexceptflag  ,
fegetexceptflag  ,
GLIBC_2_2   
)