diff options
author | Niels M?ller <nisse@lysator.liu.se> | 2020-04-20 17:25:22 +0200 |
---|---|---|
committer | Niels M?ller <nisse@lysator.liu.se> | 2020-04-20 17:25:22 +0200 |
commit | 96b35cb3bf61d7883d67e42c1a796513abdd5082 (patch) | |
tree | 0912288360b308bbf3e24544dcb48afb2fcbef13 /mini-gmp/mini-gmp.h | |
parent | 3ed5a1dbb1d7af03c416f7f8e6d86e23a3b7ce40 (diff) | |
download | gmp-96b35cb3bf61d7883d67e42c1a796513abdd5082.tar.gz |
mini-gmp: More functions mpz_fits_*_p.
New functions mpz_fits_sint_p, mpz_fits_uint_p, mpz_fits_sshort_p, and
mpz_fits_ushort_p. New tests, contributed by Marco.
Diffstat (limited to 'mini-gmp/mini-gmp.h')
-rw-r--r-- | mini-gmp/mini-gmp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mini-gmp/mini-gmp.h b/mini-gmp/mini-gmp.h index 7cce3f7a3..ef64823d4 100644 --- a/mini-gmp/mini-gmp.h +++ b/mini-gmp/mini-gmp.h @@ -244,6 +244,10 @@ mp_bitcnt_t mpz_scan1 (const mpz_t, mp_bitcnt_t); int mpz_fits_slong_p (const mpz_t); int mpz_fits_ulong_p (const mpz_t); +int mpz_fits_sint_p (const mpz_t); +int mpz_fits_uint_p (const mpz_t); +int mpz_fits_sshort_p (const mpz_t); +int mpz_fits_ushort_p (const mpz_t); long int mpz_get_si (const mpz_t); unsigned long int mpz_get_ui (const mpz_t); double mpz_get_d (const mpz_t); |