www.digitalmars.com

D Programming Language 1.0

Last update Mon Dec 31 10:53:29 2012

std.c.fenv

C's <fenv.h>

Authors:
Walter Bright, Digital Mars, http://www.digitalmars.com

License:
Public Domain

struct fenv_t;
Entire floating point environment

fenv_t* FE_DFL_ENV;
Default floating point environment

alias fexcept_t;
Floating point status flags

int fetestexcept(int excepts);


int feraiseexcept(int excepts);


int feclearexcept(int excepts);


int fegetround();


int fesetround(int round);


int fegetprec();


int fesetprec(int prec);


int fegetenv(fenv_t* envp);


int fesetenv(fenv_t* envp);


int fegetexceptflag(int* flagp, int excepts);


int fesetexceptflag(int* flagp, int excepts);


int feholdexcept(fenv_t* envp);


int feupdateenv(fenv_t* envp);


FE_INVALID


FE_DENORMAL


FE_DIVBYZERO


FE_OVERFLOW


FE_UNDERFLOW


FE_INEXACT


FE_ALL_EXCEPT
Mask of all the exceptions

FE_TONEAREST


FE_UPWARD


FE_DOWNWARD


FE_TOWARDZERO


FE_FLTPREC


FE_DBLPREC


FE_LDBLPREC