Back to index

glibc  2.9
Functions
fesetenv.c File Reference
#include "soft-fp.h"
#include "soft-supp.h"
#include <bp-sym.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 26 of file fesetenv.c.

{
  fenv_union_t u;

  u.fenv = *envp;
  __sim_exceptions = u.l[0] & FE_ALL_EXCEPT;
  __sim_round_mode = u.l[0] & 0x3;
  __sim_disabled_exceptions = u.l[1];
  return 0;
}