Back to index

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

Go to the source code of this file.

Functions

int fetestexcept (int excepts)

Function Documentation

int fetestexcept ( int  excepts)

Definition at line 29 of file ftestexcept.c.

{
  if (GLRO (dl_hwcap) & HWCAP_ARM_VFP)
    {
      fexcept_t temp;

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

      return temp & excepts & FE_ALL_EXCEPT;
    }

  /* Unsupported, return 0.  */
  return 0;
}