prevent null pointer access crashes/memory trashing.
[AROS.git] / compiler / stdc / _fenv.c
blob580b4aeeadc30d9ba4f846de54fd8e3cda9d588e
1 /*
2 Copyright © 1995-2014, 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 <fenv.h>
15 int _feclearexcept(int excepts)
17 return feclearexcept(excepts);
20 int _fegetexceptflag(fexcept_t *flagp, int excepts) {
21 return fegetexceptflag(flagp, excepts);
24 int _fesetexceptflag(const fexcept_t *flagp, int excepts) {
25 return fesetexceptflag(flagp, excepts);
28 int _feraiseexcept(int excepts) {
29 return feraiseexcept(excepts);
32 int _fetestexcept(int excepts) {
33 return fetestexcept(excepts);
36 int _fegetround(void) {
37 return fegetround();
40 int _fesetround(int round) {
41 return fesetround(round);
44 int _fegetenv(fenv_t *envp) {
45 return fegetenv(envp);
48 int _feholdexcept(fenv_t *envp) {
49 return feholdexcept(envp);
52 int _fesetenv(const fenv_t *envp) {
53 return fesetenv(envp);
56 int _feupdateenv(const fenv_t *envp) {
57 return feupdateenv(envp);