Use the detected no-builtin flag. (NicJA)
[AROS.git] / compiler / stdc / _fenv.c
blob6db31155725aa81dd4dbb2dd59fc1e262d3eada3
1 /*
2 Copyright © 1995-2018, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 /* The functions of fenv.h may be static inline functions which may not be
7 * available for the shared library. Which of the functions may depend
8 * on cpu arch.
9 * Add some stub function to make them available. In stdc.conf the
10 * function name with _ prepended will be used.
11 */
13 #include "__stdc_intbase.h"
14 #include <fenv.h>
16 void *__stdc_get_fe_dfl(void)
18 struct StdCIntBase *_StdCBase = (struct StdCIntBase *)__aros_getbase_StdCBase();
19 return (void *)_StdCBase->__fe_dfl_env;
22 void *__stdc_get_fe_nom(void)
24 struct StdCIntBase *_StdCBase = (struct StdCIntBase *)__aros_getbase_StdCBase();
25 return (void *)_StdCBase->__fe_nomask_env;
28 int __stdc_get_fe_round(void)
30 struct StdCIntBase *_StdCBase = (struct StdCIntBase *)__aros_getbase_StdCBase();
31 return _StdCBase->__fe_round;
34 int _feclearexcept(int excepts)
36 return feclearexcept(excepts);
39 int _fegetexceptflag(fexcept_t *flagp, int excepts) {
40 return fegetexceptflag(flagp, excepts);
43 int _fesetexceptflag(const fexcept_t *flagp, int excepts) {
44 return fesetexceptflag(flagp, excepts);
47 int _feraiseexcept(int excepts) {
48 return feraiseexcept(excepts);
51 int _fetestexcept(int excepts) {
52 return fetestexcept(excepts);
55 int _fegetround(void) {
56 return fegetround();
59 int _fesetround(int round) {
60 return fesetround(round);
63 int _fegetenv(fenv_t *envp) {
64 return fegetenv(envp);
67 int _feholdexcept(fenv_t *envp) {
68 return feholdexcept(envp);
71 int _fesetenv(const fenv_t *envp) {
72 return fesetenv(envp);
75 int _feupdateenv(const fenv_t *envp) {
76 return feupdateenv(envp);