diff options
author | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2015-11-21 17:23:35 +0100 |
---|---|---|
committer | Marco Bodrato <bodrato@mail.dm.unipi.it> | 2015-11-21 17:23:35 +0100 |
commit | 13846682e8fb4a27c849d1b1741bb8fe3c170d77 (patch) | |
tree | 147186632d8bcea341da186471420dd7117542f8 /gmp-impl.h | |
parent | 471bed617b448df20ccfb52a50cba7a78389a59b (diff) | |
download | gmp-13846682e8fb4a27c849d1b1741bb8fe3c170d77.tar.gz |
gmp-impl.h (MPN_TOOM22_MUL_MINSIZE): Consider ToomX2 limits.
Diffstat (limited to 'gmp-impl.h')
-rw-r--r-- | gmp-impl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gmp-impl.h b/gmp-impl.h index 24214a604..10f002bd0 100644 --- a/gmp-impl.h +++ b/gmp-impl.h @@ -1273,7 +1273,9 @@ __GMP_DECLSPEC extern gmp_randstate_t __gmp_rands; #endif #define BELOW_THRESHOLD(size,thresh) (! ABOVE_THRESHOLD (size, thresh)) -#define MPN_TOOM22_MUL_MINSIZE 4 +/* The minimal supported value for Toom22 depends also on Toom32 and + Toom42 implementations. */ +#define MPN_TOOM22_MUL_MINSIZE 6 #define MPN_TOOM2_SQR_MINSIZE 4 #define MPN_TOOM33_MUL_MINSIZE 17 |