Back to index

glibc  2.9
Functions
fesetenv.c File Reference
#include <fenv.h>
#include <shlib-compat.h>

Go to the source code of this file.

Functions

int __fesetenv (const fenv_t *envp)

Function Documentation

int __fesetenv ( const fenv_t envp)

Definition at line 24 of file fesetenv.c.

{
  fenv_t dummy;

  /* Put these constants in memory explicitly, so as to cope with a
     -fPIC bug as of gcc 970624.  Making them automatic is quicker
     than loading up the pic register in this instance.  */

  if (envp == FE_DFL_ENV)
    {
      dummy = 0;
      envp = &dummy;
    }
  else if (envp == FE_NOMASK_ENV)
    {
      dummy = 0x1f << 23;
      envp = &dummy;
    }

  __fenv_ldfsr (*envp);

  /* Success.  */
  return 0;
}

Here is the call graph for this function: