summaryrefslogtreecommitdiff
path: root/src/urandomb.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-12-05 10:20:06 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-12-05 10:20:06 +0000
commit6993793bfb800fd9208a0302b73390de2e18ae30 (patch)
tree0bf713aba1f265a5969817410f748a93e5f69e26 /src/urandomb.c
parent5f46cefa2dc73189984a631ad65eef34b83e434e (diff)
downloadmpfr-6993793bfb800fd9208a0302b73390de2e18ae30.tar.gz
[src/urandomb.c] Removed an obsolete "#if __MPFR_GMP(5,0,0)" as we now
require GMP 5.0+ and mp_bitcnt_t is also defined by mini-gmp. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11904 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/urandomb.c')
-rw-r--r--src/urandomb.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/urandomb.c b/src/urandomb.c
index 6242c09c0..b1f1c9488 100644
--- a/src/urandomb.c
+++ b/src/urandomb.c
@@ -36,12 +36,10 @@ mpfr_rand_raw (mpfr_limb_ptr mp, gmp_randstate_t rstate,
mpz_t z;
MPFR_ASSERTN (nbits >= 1);
-#if __MPFR_GMP(5,0,0)
/* Check for integer overflow (unless mp_bitcnt_t is signed,
but according to the GMP manual, this shouldn't happen).
Note: mp_bitcnt_t has been introduced in GMP 5.0.0. */
MPFR_ASSERTN ((mp_bitcnt_t) -1 < 0 || nbits <= (mp_bitcnt_t) -1);
-#endif
mpz_init (z);
mpz_urandomb (z, rstate, nbits);
MPN_COPY(mp, PTR(z), MPFR_PREC2LIMBS (nbits));