From ebe0c5961d503ae36ab88eff572ac91440701afe Mon Sep 17 00:00:00 2001 From: vlefevre Date: Mon, 17 Sep 2018 10:08:51 +0000 Subject: [tests/random2.c] Fix for 8-bit limb. git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@13207 280ebfd0-de03-0410-8827-d642c229c3f4 --- tests/random2.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/random2.c b/tests/random2.c index df4b743ac..463897f15 100644 --- a/tests/random2.c +++ b/tests/random2.c @@ -23,7 +23,12 @@ http://www.gnu.org/licenses/ or write to the Free Software Foundation, Inc., #include "mpfr-test.h" +#if GMP_NUMB_BITS < 16 +#define LOGBITS_PER_BLOCK 3 +#else #define LOGBITS_PER_BLOCK 4 +#endif + #if GMP_NUMB_BITS < 32 #define BITS_PER_RANDCALL GMP_NUMB_BITS #else -- cgit v1.2.1