Back to index

glibc  2.9
Functions
fegetenv.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 __fegetenv (fenv_t *envp)
 versioned_symbol (libm, __fegetenv, fegetenv, GLIBC_2_2)

Function Documentation

int __fegetenv ( fenv_t envp)

Definition at line 29 of file fegetenv.c.

{
  if (GLRO (dl_hwcap) & HWCAP_ARM_VFP)
    {
      unsigned long int temp;
      _FPU_GETCW (temp);
      envp->__cw = temp;

      /* Success.  */
      return 0;
    }

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