git: 9front

Download patch

ref: 6e35fea80924eda1ed300308fedd38d5ce826e5f
parent: dfc2c1723bbba30725202ffb9139d74402ebfd91
author: mischief <mischief@offblast.org>
date: Sun Nov 4 06:37:02 EST 2018

libmp: declare mpfactorial

--- a/sys/include/mp.h
+++ b/sys/include/mp.h
@@ -102,6 +102,9 @@
 /* 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);
 
--