Back to index

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

Function Documentation

Definition at line 30 of file feupdateenv.c.

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

      /* Get the current exception state.  */
      _FPU_GETCW (temp);

      /* Install new environment.  */
      fesetenv (envp);

      /* Raise the saved exceptions.  */
      feraiseexcept (temp & FE_ALL_EXCEPT);

      /* Success.  */
      return 0;
    }

  /* Unsupported, so fail.  */
  return 1;
}

Here is the call graph for this function:

versioned_symbol ( libm  ,
__feupdateenv  ,
feupdateenv  ,
GLIBC_2_2   
)