Back to index

glibc  2.9
Functions
fesetenv.c File Reference
#include <fenv.h>
#include <fpu_control.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.

{
  if (envp == FE_DFL_ENV)
    _FPU_SETCW (_FPU_DEFAULT);
  else
    {
      unsigned long int temp = envp->__cw;
      _FPU_SETCW (temp);
    }

  /* Success.  */
  return 0;
}