diff options
author | Duncan Wilkie <antigravityd@gmail.com> | 2023-11-18 06:11:09 -0600 |
---|---|---|
committer | Duncan Wilkie <antigravityd@gmail.com> | 2023-11-18 06:11:09 -0600 |
commit | 11da511c784eca003deb90c23570f0873954e0de (patch) | |
tree | e14fdd3d5d6345956d67e79ae771d0633d28362b /gmp-6.3.0/tests/mpn/t-toom22.c |
Initial commit.
Diffstat (limited to 'gmp-6.3.0/tests/mpn/t-toom22.c')
-rw-r--r-- | gmp-6.3.0/tests/mpn/t-toom22.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gmp-6.3.0/tests/mpn/t-toom22.c b/gmp-6.3.0/tests/mpn/t-toom22.c new file mode 100644 index 0000000..c9beed9 --- /dev/null +++ b/gmp-6.3.0/tests/mpn/t-toom22.c @@ -0,0 +1,10 @@ +#define mpn_toomMN_mul mpn_toom22_mul +#define mpn_toomMN_mul_itch mpn_toom22_mul_itch +#define MIN_AN MIN(MPN_TOOM22_MUL_MINSIZE,4) + +#define MIN_BN(an) \ + ((an) >= 2*MUL_TOOM22_THRESHOLD \ + ? (an) + 2 - MUL_TOOM22_THRESHOLD \ + : ((an)+1)/2 + 1 + (an & 1)) + +#include "toom-shared.h" |