diff options
author | Niels M?ller <nisse@lysator.liu.se> | 2014-01-02 20:59:40 +0100 |
---|---|---|
committer | Niels M?ller <nisse@lysator.liu.se> | 2014-01-02 20:59:40 +0100 |
commit | eb805b2b114f75b4cb17c99e1e14ffd5184cdc52 (patch) | |
tree | c7aa63112d7ffcce6d8c15cb644cac775db9a2f3 | |
parent | 91cbbfbce534ed2a97326fbeec38c7ccb6b46666 (diff) | |
download | gmp-eb805b2b114f75b4cb17c99e1e14ffd5184cdc52.tar.gz |
Enable mpn_sizeinbase, and make public.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | gmp-h.in | 3 |
3 files changed, 11 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2014-01-02 Niels Möller <nisse@lysator.liu.se> + + Enable previously unused mpn_sizeinbase function. + * configure.ac (gmp_mpn_functions): Added sizeinbase. + * gmp-h.in (mpn_sizeinbase): New prototype. + 2014-01-02 Marc Glisse <marc.glisse@inria.fr> * gmp-impl.h: Always include <limits.h>. diff --git a/configure.ac b/configure.ac index 8a2de2354..f54030c10 100644 --- a/configure.ac +++ b/configure.ac @@ -2800,7 +2800,8 @@ gmp_mpn_functions="$extra_functions \ mul mul_fft mul_n sqr mul_basecase sqr_basecase nussbaumer_mul \ mulmid_basecase toom42_mulmid mulmid_n mulmid \ random random2 pow_1 \ - rootrem sqrtrem get_str set_str scan0 scan1 popcount hamdist cmp \ + rootrem sqrtrem sizeinbase get_str set_str \ + scan0 scan1 popcount hamdist cmp \ perfsqr perfpow \ gcd_1 gcd gcdext_1 gcdext gcd_subdiv_step \ gcdext_lehmer \ @@ -1575,6 +1575,9 @@ __GMP_DECLSPEC mp_bitcnt_t mpn_scan1 (mp_srcptr, mp_bitcnt_t) __GMP_ATTRIBUTE_PU #define mpn_set_str __MPN(set_str) __GMP_DECLSPEC mp_size_t mpn_set_str (mp_ptr, const unsigned char *, size_t, int); +#define mpn_sizeinbase __MPN(sizeinbase) +__GMP_DECLSPEC size_t mpn_sizeinbase (mp_srcptr, mp_size_t, int); + #define mpn_sqrtrem __MPN(sqrtrem) __GMP_DECLSPEC mp_size_t mpn_sqrtrem (mp_ptr, mp_ptr, mp_srcptr, mp_size_t); |