diff options
| author | Jakob Kaivo <jkk@ung.org> | 2024-01-31 14:48:09 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2024-01-31 14:48:09 -0500 |
| commit | 78033913abfce71b1bcc075ed188c6b6ec087a13 (patch) | |
| tree | 2ab38bf89ea46f651c68963c033dac5f345f1e04 /src/fenv/feclearexcept.c | |
| parent | 24e5f210091ce984b47fd510217f10245f800f52 (diff) | |
add checks for valid exception masks
Diffstat (limited to 'src/fenv/feclearexcept.c')
| -rw-r--r-- | src/fenv/feclearexcept.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/fenv/feclearexcept.c b/src/fenv/feclearexcept.c index cf09adcd..4e6e2fc5 100644 --- a/src/fenv/feclearexcept.c +++ b/src/fenv/feclearexcept.c @@ -1,12 +1,15 @@ #include <fenv.h> -#include "_safety.h" +#include "_fenv.h" int feclearexcept(int excepts) { SIGNAL_SAFE(0); + ASSERT_VALID_EXCEPTION_MASK(excepts); return excepts; } +CHECK_1(int, 0, feclearexcept, int) + /* The feclearexcept function clears the supported floating-point exceptions represented by its argument. |
