summaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
authormischief <mischief@offblast.org>2018-11-04 11:37:02 -0800
committermischief <mischief@offblast.org>2018-11-04 11:37:02 -0800
commit6df3f7bf384deb72df9d02bd7a9757d552c1bfe2 (patch)
treee1f565682c79edf8750320b59846d2376a824008 /sys/include
parent0a681f38eb2d5fb079b45b2cdb833fe8cb51a3cf (diff)
libmp: declare mpfactorial
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/mp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/include/mp.h b/sys/include/mp.h
index b49cb16a7..0de6db39c 100644
--- a/sys/include/mp.h
+++ b/sys/include/mp.h
@@ -102,6 +102,9 @@ int mpcmp(mpint *b1, mpint *b2);
/* res = s != 0 ? b1 : b2 */
void mpsel(int s, mpint *b1, mpint *b2, mpint *res);
+/* return n! */
+mpint* mpfactorial(ulong n);
+
/* extended gcd return d, x, and y, s.t. d = gcd(a,b) and ax+by = d */
void mpextendedgcd(mpint *a, mpint *b, mpint *d, mpint *x, mpint *y);