diff options
author | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-09-17 10:08:51 +0000 |
---|---|---|
committer | vlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4> | 2018-09-17 10:08:51 +0000 |
commit | ebe0c5961d503ae36ab88eff572ac91440701afe (patch) | |
tree | f7eadc7788875238f70e0a41c488e9b4b8dc3c8a | |
parent | 805fe91f997e46ade848b79d00f86afe63efc723 (diff) | |
download | mpfr-ebe0c5961d503ae36ab88eff572ac91440701afe.tar.gz |
[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
-rw-r--r-- | tests/random2.c | 5 |
1 files changed, 5 insertions, 0 deletions
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 |