OLD | NEW |
1 #include <fenv.h> | 1 #include <fenv.h> |
2 | 2 |
3 /* Dummy functions for archs lacking fenv implementation */ | 3 /* Dummy functions for archs lacking fenv implementation */ |
4 | 4 |
5 int feclearexcept(int mask) | 5 int feclearexcept(int mask) { |
6 { | 6 return 0; |
7 » return 0; | |
8 } | 7 } |
9 | 8 |
10 int feraiseexcept(int mask) | 9 int feraiseexcept(int mask) { |
11 { | 10 return 0; |
12 » return 0; | |
13 } | 11 } |
14 | 12 |
15 int fetestexcept(int mask) | 13 int fetestexcept(int mask) { |
16 { | 14 return 0; |
17 » return 0; | |
18 } | 15 } |
19 | 16 |
20 int fegetround(void) | 17 int fegetround(void) { |
21 { | 18 return FE_TONEAREST; |
22 » return FE_TONEAREST; | |
23 } | 19 } |
24 | 20 |
25 int __fesetround(int r) | 21 int __fesetround(int r) { |
26 { | 22 return 0; |
27 » return 0; | |
28 } | 23 } |
29 | 24 |
30 int fegetenv(fenv_t *envp) | 25 int fegetenv(fenv_t* envp) { |
31 { | 26 return 0; |
32 » return 0; | |
33 } | 27 } |
34 | 28 |
35 int fesetenv(const fenv_t *envp) | 29 int fesetenv(const fenv_t* envp) { |
36 { | 30 return 0; |
37 » return 0; | |
38 } | 31 } |
OLD | NEW |