aboutsummaryrefslogtreecommitdiffstats
path: root/libj2_j2u_div_ju_underflow.c
diff options
context:
space:
mode:
authorMattias Andrée <m@maandree.se>2025-12-06 10:42:52 +0100
committerMattias Andrée <m@maandree.se>2025-12-06 10:42:52 +0100
commitef12887f9c9c5c3cf6efb3cdc510975601f46e6e (patch)
tree2f66c8d60747e5f2c106263fab5e7ea1fa9c8bc0 /libj2_j2u_div_ju_underflow.c
parentDocument in which version everything was added (diff)
downloadlibj2-ef12887f9c9c5c3cf6efb3cdc510975601f46e6e.tar.gz
libj2-ef12887f9c9c5c3cf6efb3cdc510975601f46e6e.tar.bz2
libj2-ef12887f9c9c5c3cf6efb3cdc510975601f46e6e.tar.xz
Add division with underflow detection1.0
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'libj2_j2u_div_ju_underflow.c')
-rw-r--r--libj2_j2u_div_ju_underflow.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libj2_j2u_div_ju_underflow.c b/libj2_j2u_div_ju_underflow.c
new file mode 100644
index 0000000..4117569
--- /dev/null
+++ b/libj2_j2u_div_ju_underflow.c
@@ -0,0 +1,13 @@
+/* See LICENSE file for copyright and license details. */
+#include "common.h"
+#ifndef TEST
+
+extern inline int libj2_j2u_div_ju_underflow(struct libj2_j2u *a, uintmax_t b);
+/* TODO Add man page */
+
+
+#else
+
+CONST int main(void) { return 0; } /* Tested in libj2_j2u_divmod_j2u_to_j2u.c */
+
+#endif