summaryrefslogtreecommitdiff
path: root/src/nrandom.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2014-07-02 12:24:54 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2014-07-02 12:24:54 +0000
commit6ea1da8d42181e6e9e7b4a745905838ca5d7eb53 (patch)
treea0fbdbbf9375b702aeba87d6b6747b67fc238f65 /src/nrandom.c
parent396be0fdcfae2571a76a734cac016237dad7468a (diff)
downloadmpfr-6ea1da8d42181e6e9e7b4a745905838ca5d7eb53.tar.gz
Removed the need of MPFR_USE_MINI_GMP tests for mpfr_[ne]random
functions (source and tests) as mpfr_random_deviate_value no longer needs mpq_t (since r9066). Also removed a static assertion in src/random_deviate.c for the same reason. Note: the change done in r9133 is now really useful! git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@9135 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/nrandom.c')
-rw-r--r--src/nrandom.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/nrandom.c b/src/nrandom.c
index 912562792..7d013093f 100644
--- a/src/nrandom.c
+++ b/src/nrandom.c
@@ -51,9 +51,6 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc.,
* asserts would be that the hardware generator was broken.)
*/
-/* this file cannot be compiled with mini-gmp since it relies on
- mpfr_random_deviate_value which needs mpq_t */
-#ifndef MPFR_USE_MINI_GMP
#include "random_deviate.h"
/* Algorithm H: true with probability exp(-1/2). */
@@ -180,10 +177,3 @@ mpfr_nrandom (mpfr_t z, gmp_randstate_t r, mpfr_rnd_t rnd)
mpfr_random_deviate_clear (x);
return inex;
}
-
-#else
-
-/* Avoid an empty translation unit (see ISO C99, 6.9) */
-typedef int foo;
-
-#endif