2 Copyright © 2007, The AROS Development Team. All rights reserved.
5 C99 floating-point environment
8 /* Use architecture-specific implementation if available */
10 # include <aros/i386/fenv.h>
11 #elif defined __x86_64__
12 # include <aros/x86_64/fenv.h>
13 #elif defined __powerpc__
14 # include <aros/ppc/fenv.h>
16 /* otherwise just use the stub implementation */
17 #elif !defined _FENV_H_
20 #include <sys/cdefs.h>
21 #include <sys/_types.h>
23 typedef __uint32_t fenv_t
;
24 typedef __uint32_t fexcept_t
;
26 #define FE_ALL_EXCEPT 0
30 extern const fenv_t __fe_dfl_env
;
31 #define FE_DFL_ENV (&__fe_dfl_env)
33 int feclearexcept(int excepts
);
34 int fegetexceptflag(fexcept_t
*flagp
, int excepts
);
35 int fesetexceptflag(const fexcept_t
*flagp
, int excepts
);
36 int feraiseexcept(int excepts
);
37 int fetestexcept(int excepts
);
39 int fesetround(int round
);
40 int fegetenv(fenv_t
*envp
);
41 int feholdexcept(fenv_t
*envp
);
42 int fesetenv(const fenv_t
*envp
);
43 int feupdateenv(const fenv_t
*envp
);
46 int feenableexcept(int mask
);
47 int fedisableexcept(int mask
);
48 int fegetexcept(void);