path: root/include/mini-gmp.h
diff options
authorHarsha Sharma <>2018-03-31 20:19:41 +0530
committerPablo Neira Ayuso <>2018-03-31 20:31:26 +0200
commitff8105752ae9d29c50d18e35bc766935642b7476 (patch)
tree912ab93a91ea4069f2d8e000654df41c50eeec31 /include/mini-gmp.h
parentec2048961c100fdadf7102c70f1519f71dc35ecb (diff)
src: Updates for mini-gmp.{c,h}
updates from latest stable release of libgmp to get in sync with them Signed-off-by: Harsha Sharma <> Signed-off-by: Pablo Neira Ayuso <>
Diffstat (limited to 'include/mini-gmp.h')
1 files changed, 7 insertions, 1 deletions
diff --git a/include/mini-gmp.h b/include/mini-gmp.h
index c043ca7e..27e0c067 100644
--- a/include/mini-gmp.h
+++ b/include/mini-gmp.h
@@ -1,6 +1,6 @@
/* mini-gmp, a minimalistic implementation of a GNU GMP subset.
-Copyright 2011-2014 Free Software Foundation, Inc.
+Copyright 2011-2015, 2017 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -82,6 +82,7 @@ void mpn_copyd (mp_ptr, mp_srcptr, mp_size_t);
void mpn_zero (mp_ptr, mp_size_t);
int mpn_cmp (mp_srcptr, mp_srcptr, mp_size_t);
+int mpn_zero_p (mp_srcptr, mp_size_t);
mp_limb_t mpn_add_1 (mp_ptr, mp_srcptr, mp_size_t, mp_limb_t);
mp_limb_t mpn_add_n (mp_ptr, mp_srcptr, mp_srcptr, mp_size_t);
@@ -107,6 +108,9 @@ mp_limb_t mpn_rshift (mp_ptr, mp_srcptr, mp_size_t, unsigned int);
mp_bitcnt_t mpn_scan0 (mp_srcptr, mp_bitcnt_t);
mp_bitcnt_t mpn_scan1 (mp_srcptr, mp_bitcnt_t);
+void mpn_com (mp_ptr, mp_srcptr, mp_size_t);
+mp_limb_t mpn_neg (mp_ptr, mp_srcptr, mp_size_t);
mp_bitcnt_t mpn_popcount (mp_srcptr, mp_size_t);
mp_limb_t mpn_invert_3by2 (mp_limb_t, mp_limb_t);
@@ -213,6 +217,8 @@ void mpz_rootrem (mpz_t, mpz_t, const mpz_t, unsigned long);
int mpz_root (mpz_t, const mpz_t, unsigned long);
void mpz_fac_ui (mpz_t, unsigned long);
+void mpz_2fac_ui (mpz_t, unsigned long);
+void mpz_mfac_uiui (mpz_t, unsigned long, unsigned long);
void mpz_bin_uiui (mpz_t, unsigned long, unsigned long);
int mpz_probab_prime_p (const mpz_t, int);