Back to index

glibc  2.9
Functions
fegetenv.c File Reference
#include <fenv.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 24 of file fegetenv.c.

{
#ifdef __mcoldfire__
  __asm__ ("fmove%.l %/fpcr,%0" : "=dm" (envp->__control_register));
  __asm__ ("fmove%.l %/fpsr,%0" : "=dm" (envp->__status_register));
  __asm__ ("fmove%.l %/fpiar,%0" : "=dm" (envp->__instruction_address));
#else
  __asm__ ("fmovem%.l %/fpcr/%/fpsr/%/fpiar,%0" : "=m" (*envp));
#endif

  /* Success.  */
  return 0;
}

Here is the call graph for this function:

versioned_symbol ( libm  ,
__fegetenv  ,
fegetenv  ,
GLIBC_2_2   
)