libmp: declare mpfactorial

This commit is contained in:
mischief 2018-11-04 11:37:02 -08:00
parent 0a681f38eb
commit 6df3f7bf38

View file

@ -102,6 +102,9 @@ int mpcmp(mpint *b1, mpint *b2);
/* res = s != 0 ? b1 : b2 */ /* res = s != 0 ? b1 : b2 */
void mpsel(int s, mpint *b1, mpint *b2, mpint *res); 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 */ /* 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); void mpextendedgcd(mpint *a, mpint *b, mpint *d, mpint *x, mpint *y);