diff options
author | Jakob Kaivo <jkk@ung.org> | 2024-01-31 17:18:18 -0500 |
---|---|---|
committer | Jakob Kaivo <jkk@ung.org> | 2024-01-31 17:18:18 -0500 |
commit | c03798ecaecc529eab2332c11d1550f02f503c87 (patch) | |
tree | 632c46be3e4116bb3bbdb83b8fe752bf19932266 | |
parent | c3e4cda23b025d80a001a20758a907964a220361 (diff) |
clean up headers
-rw-r--r-- | src/fenv/fegetenv.c | 4 | ||||
-rw-r--r-- | src/fenv/fegetround.c | 4 | ||||
-rw-r--r-- | src/fenv/feholdexcept.c | 4 | ||||
-rw-r--r-- | src/fenv/fesetround.c | 4 | ||||
-rw-r--r-- | src/fenv/feupdateenv.c | 4 |
5 files changed, 15 insertions, 5 deletions
diff --git a/src/fenv/fegetenv.c b/src/fenv/fegetenv.c index ef68b8b6..9a40e83b 100644 --- a/src/fenv/fegetenv.c +++ b/src/fenv/fegetenv.c @@ -1,5 +1,5 @@ #include <fenv.h> -#include "_safety.h" +#include "_fenv.h" int fegetenv(fenv_t *envp) { @@ -8,6 +8,8 @@ int fegetenv(fenv_t *envp) return 0; } +CHECK_1(int, 0, fegetenv, fenv_t *) + /* The fegetenv function stores the current floating-point environment in the object pointed to by envp. diff --git a/src/fenv/fegetround.c b/src/fenv/fegetround.c index 03389e63..2aa18464 100644 --- a/src/fenv/fegetround.c +++ b/src/fenv/fegetround.c @@ -1,5 +1,5 @@ #include <fenv.h> -#include "_safety.h" +#include "_fenv.h" int fegetround(void) { @@ -7,6 +7,8 @@ int fegetround(void) return 0; } +CHECK_0(int, 0, fegetround) + /* The fegetround function gets the current rounding direction. */ diff --git a/src/fenv/feholdexcept.c b/src/fenv/feholdexcept.c index 7740ee58..51ef526b 100644 --- a/src/fenv/feholdexcept.c +++ b/src/fenv/feholdexcept.c @@ -1,5 +1,5 @@ #include <fenv.h> -#include "_safety.h" +#include "_fenv.h" int feholdexcept(fenv_t *envp) { @@ -8,6 +8,8 @@ int feholdexcept(fenv_t *envp) return 0; } +CHECK_1(int, 0, feholdexcept, fenv_t *) + /* The feholdexcept function saves the current floating-point environment in the object pointed to by envp, clears the floating-point status flags, and then installs a non-stop diff --git a/src/fenv/fesetround.c b/src/fenv/fesetround.c index 3997adcf..94eaedf8 100644 --- a/src/fenv/fesetround.c +++ b/src/fenv/fesetround.c @@ -1,5 +1,5 @@ #include <fenv.h> -#include "_safety.h" +#include "_fenv.h" int fesetround(int round) { @@ -7,6 +7,8 @@ int fesetround(int round) return round; } +CHECK_1(int, 0, fesetround, int) + /* The fesetround function establishes the rounding direction represented by its argument round. If the argument is not equal to the value of a rounding direction macro, diff --git a/src/fenv/feupdateenv.c b/src/fenv/feupdateenv.c index 805e4b92..2b7c8626 100644 --- a/src/fenv/feupdateenv.c +++ b/src/fenv/feupdateenv.c @@ -1,5 +1,5 @@ #include <fenv.h> -#include "_safety.h" +#include "_fenv.h" int feupdateenv(const fenv_t *envp) { @@ -8,6 +8,8 @@ int feupdateenv(const fenv_t *envp) return 0; } +CHECK_1(int, 0, feupdateenv, const fenv_t *) + /* The feupdateenv function saves the currently raised floating-point exceptions in its automatic storage, installs the floating-point environment represented by the object |