buildtools/gcc/gmp/tests/mpn/t-toom8h.c
2018-03-19 15:46:45 -05:00

27 lines
592 B
C

#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_THRESHOLD
#if GMP_NUMB_BITS <= 10*3
#define MIN_BN(an) (MAX ((an*6)/10, 86) )
#else
#if GMP_NUMB_BITS <= 11*3
#define MIN_BN(an) (MAX ((an*5)/11, 86) )
#else
#if GMP_NUMB_BITS <= 12*3
#define MIN_BN(an) (MAX ((an*4)/12, 86) )
#else
#define MIN_BN(an) (MAX ((an*4)/13, 86) )
#endif
#endif
#endif
#define COUNT 1000
#include "toom-shared.h"