diff options
| author | Jakob Kaivo <jkk@ung.org> | 2024-06-07 13:43:01 -0400 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2024-06-07 13:43:01 -0400 |
| commit | 85ee577101d7ee7fdafcc73bd73e2a3c3944022d (patch) | |
| tree | a545e2fdac8b85ad3d09d17d4f3ef2092a5492e0 /src/fenv/feholdexcept.c | |
| parent | 5fdba7baaab65651eb5bd431e969d59242e484db (diff) | |
track usable fenv_t values
Diffstat (limited to 'src/fenv/feholdexcept.c')
| -rw-r--r-- | src/fenv/feholdexcept.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/fenv/feholdexcept.c b/src/fenv/feholdexcept.c index 51ef526b..71c713d0 100644 --- a/src/fenv/feholdexcept.c +++ b/src/fenv/feholdexcept.c @@ -4,7 +4,9 @@ int feholdexcept(fenv_t *envp) { SIGNAL_SAFE(0); - (void)envp; + ASSERT_NONNULL(envp); + fegetenv(envp); + /* TODO: clears the floating-point status flags, and then installs a non-stop (continue on floating-point exceptions) mode, if available, for all floating-point exceptions. */ return 0; } |
