summaryrefslogtreecommitdiff
path: root/src/libbiguint/bu_mod.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libbiguint/bu_mod.c')
-rw-r--r--src/libbiguint/bu_mod.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/libbiguint/bu_mod.c b/src/libbiguint/bu_mod.c
new file mode 100644
index 0000000..2050320
--- /dev/null
+++ b/src/libbiguint/bu_mod.c
@@ -0,0 +1,10 @@
+/* ISC license. */
+
+#include <skalibs/uint32.h>
+#include <skalibs/biguint.h>
+
+int bu_mod (uint32 *a, unsigned int an, uint32 const *b, unsigned int bn)
+{
+ uint32 q[an] ;
+ return bu_div(a, an, b, bn, q, an, a, an) ;
+}