Back to index

glibc  2.9
fegetenv.c File Reference
#include <fenv.h>
#include <bp-sym.h>
#include <shlib-compat.h>

Go to the source code of this file.


int __fegetenv (fenv_t *envp)
 versioned_symbol (libm, BP_SYM(__fegetenv), BP_SYM(fegetenv), GLIBC_2_2)

Function Documentation

int __fegetenv ( fenv_t envp)

Definition at line 25 of file fegetenv.c.

  __asm__ ("fnstenv %0" : "=m" (*envp));
  /* And load it right back since the processor changes the mask.
     Intel thought this opcode to be used in interrupt handlers which
     would block all exceptions.  */
  __asm__ ("fldenv %0" : : "m" (*envp));

  /* Success.  */
  return 0;

Here is the call graph for this function:

versioned_symbol ( libm  ,
BP_SYM(__fegetenv ,
BP_SYM(fegetenv ,