summaryrefslogtreecommitdiff
path: root/src/erandom.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/erandom.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/erandom.c')
-rw-r--r--src/erandom.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/erandom.c b/src/erandom.c
index 202904484..f37623e17 100644
--- a/src/erandom.c
+++ b/src/erandom.c
@@ -52,9 +52,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"
/* true with prob exp(-x) */
@@ -102,10 +99,3 @@ mpfr_erandom (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