diff options
| author | Jakob Kaivo <jkk@ung.org> | 2024-01-30 13:15:59 -0500 |
|---|---|---|
| committer | Jakob Kaivo <jkk@ung.org> | 2024-01-30 13:15:59 -0500 |
| commit | 608008917d26e7b2f6d0e1041ab981c853fe9733 (patch) | |
| tree | 89b3943cea54b5b1b7addadf10951a08d21653d2 /src/inttypes/imaxdiv.c | |
| parent | 46e4b9b12ec7d170691c2cb05970d6537633fa71 (diff) | |
update standards and safety checks
Diffstat (limited to 'src/inttypes/imaxdiv.c')
| -rw-r--r-- | src/inttypes/imaxdiv.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/inttypes/imaxdiv.c b/src/inttypes/imaxdiv.c index ee318996..4c1c7a70 100644 --- a/src/inttypes/imaxdiv.c +++ b/src/inttypes/imaxdiv.c @@ -1,12 +1,13 @@ -#if 0 - -#include <stddef.h> #include <inttypes.h> +#include "_safety.h" +#undef imaxdiv /** calculate quotient and remainder **/ imaxdiv_t imaxdiv(intmax_t numer, intmax_t denom) { + SIGNAL_SAFE(0); + imaxdiv_t r; r.quot = numer / denom; r.rem = numer % denom; @@ -23,6 +24,3 @@ UNDEFINED(The result cannot be represented) RETURN_SUCCESS(a TYPEDEF(ldiv_t) containing both the quotient and remainder) STDC(199901) */ - - -#endif |
