Back to index

glibc  2.9
fegetround.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.


int fegetround (void)

Function Documentation

int fegetround ( void  )

Definition at line 29 of file fegetround.c.

  if (GLRO (dl_hwcap) & HWCAP_ARM_VFP)
      unsigned int temp;

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

      return temp & FE_TOWARDZERO;

  /* The current soft-float implementation only handles TONEAREST.  */
  return FE_TONEAREST;