diff options
Diffstat (limited to 'vendor/gmp-6.3.0/tests/mpn/t-toom8h.c')
-rw-r--r-- | vendor/gmp-6.3.0/tests/mpn/t-toom8h.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/vendor/gmp-6.3.0/tests/mpn/t-toom8h.c b/vendor/gmp-6.3.0/tests/mpn/t-toom8h.c new file mode 100644 index 0000000..b21344e --- /dev/null +++ b/vendor/gmp-6.3.0/tests/mpn/t-toom8h.c @@ -0,0 +1,19 @@ +#define mpn_toomMN_mul mpn_toom8h_mul +#define mpn_toomMN_mul_itch mpn_toom8h_mul_itch + +#define SIZE_LOG 11 + +/* Smaller sizes not supported; may lead to recursive calls to + toom{22,33,44,6h}_mul with invalid input size. */ +#define MIN_AN MUL_TOOM8H_MIN + +#define MIN_BN(an) \ +(MAX(GMP_NUMB_BITS <= 9*3 ? (an*7)/ 9 : \ + GMP_NUMB_BITS <= 10*3 ? (an*6)/10 : \ + GMP_NUMB_BITS <= 11*3 ? (an*5)/11 : \ + GMP_NUMB_BITS <= 12*3 ? (an*4)/12 : \ + (an*4)/13, 86) ) + +#define COUNT 1000 + +#include "toom-shared.h" |