add a missing section header table index conversion
[tangerine.git] / compiler / clib / include / fenv.h
blob307c1462c7b89a2726064919ee37b2ae78a428d4
1 /*
2 Copyright © 2007, The AROS Development Team. All rights reserved.
3 $Id$
5 C99 floating-point environment
6 */
8 /* Use architecture-specific implementation if available */
9 #if defined __i386__
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_
18 #define _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
28 __BEGIN_DECLS
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);
38 int fegetround(void);
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);
45 #if __BSD_VISIBLE
46 int feenableexcept(int mask);
47 int fedisableexcept(int mask);
48 int fegetexcept(void);
49 #endif
51 __END_DECLS
53 #endif