Back to index

glibc  2.9
Functions
fegetexcept.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 fegetexcept (void)

Function Documentation

int fegetexcept ( void  )

Definition at line 30 of file fegetexcept.c.

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

      _FPU_GETCW (temp);

      return (temp >> FE_EXCEPT_SHIFT) & FE_ALL_EXCEPT;
    }

  /* Unsupported. Return all exceptions disabled.  */
  return 0;
}