|
nsz |
e19254 |
#include <fenv.h>
|
|
nsz |
e19254 |
#define T(t) (t*)0;
|
|
nsz |
e19254 |
#define F(t,n) {t *y = &x.;;}
|
|
nsz |
e19254 |
#define C(n) switch(n){case n:;}
|
|
nsz |
e19254 |
static void f()
|
|
nsz |
e19254 |
{
|
|
nsz |
e19254 |
T(fenv_t)
|
|
nsz |
e19254 |
T(fexcept_t)
|
|
nsz |
e19254 |
//FE_DIVBYZERO
|
|
nsz |
e19254 |
//FE_INEXACT
|
|
nsz |
e19254 |
//FE_INVALID
|
|
nsz |
e19254 |
//FE_OVERFLOW
|
|
nsz |
e19254 |
//FE_UNDERFLOW
|
|
nsz |
e19254 |
C(FE_ALL_EXCEPT)
|
|
nsz |
e19254 |
//FE_DOWNWARD
|
|
nsz |
e19254 |
//FE_TONEAREST
|
|
nsz |
e19254 |
//FE_TOWARDZERO
|
|
nsz |
e19254 |
//FE_UPWARD
|
|
nsz |
e19254 |
{const fenv_t *c = FE_DFL_ENV;}
|
|
nsz |
e19254 |
int(*p_feclearexcept)(int) = feclearexcept;
|
|
nsz |
e19254 |
int(*p_fegetenv)(fenv_t*) = fegetenv;
|
|
nsz |
e19254 |
int(*p_fegetexceptflag)(fexcept_t*,int) = fegetexceptflag;
|
|
nsz |
e19254 |
int(*p_fegetround)(void) = fegetround;
|
|
nsz |
e19254 |
int(*p_feholdexcept)(fenv_t*) = feholdexcept;
|
|
nsz |
e19254 |
int(*p_feraiseexcept)(int) = feraiseexcept;
|
|
nsz |
e19254 |
int(*p_fesetenv)(const fenv_t*) = fesetenv;
|
|
nsz |
e19254 |
int(*p_fesetexceptflag)(const fexcept_t*,int) = fesetexceptflag;
|
|
nsz |
e19254 |
int(*p_fesetround)(int) = fesetround;
|
|
nsz |
e19254 |
int(*p_fetestexcept)(int) = fetestexcept;
|
|
nsz |
e19254 |
int(*p_feupdateenv)(const fenv_t*) = feupdateenv;
|
|
nsz |
e19254 |
}
|