From 6b59c6b0ba12bd9a92023fd6f0fbd449d7093948 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)> Date: Sun, 7 Feb 2010 20:58:21 +0000 Subject: [PATCH] Fixed some bugs in mpn_sqr_n to do with SQR_THRESHOLDS. --- mpn/generic/mul_n.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mpn/generic/mul_n.c b/mpn/generic/mul_n.c index 185826e2..ca23a534 100644 --- a/mpn/generic/mul_n.c +++ b/mpn/generic/mul_n.c @@ -501,7 +501,7 @@ mpn_sqr_n (mp_ptr p, mp_srcptr a, mp_size_t n) ASSERT (SQR_TOOM3_THRESHOLD <= SQR_TOOM3_THRESHOLD_LIMIT); mpn_kara_sqr_n (p, a, n, ws); } - else if (BELOW_THRESHOLD (n, MUL_TOOM4_THRESHOLD)) + else if (BELOW_THRESHOLD (n, SQR_TOOM4_THRESHOLD)) { mp_ptr ws; TMP_SDECL; @@ -510,7 +510,7 @@ mpn_sqr_n (mp_ptr p, mp_srcptr a, mp_size_t n) mpn_toom3_sqr_n (p, a, n, ws); TMP_SFREE; } - else if (BELOW_THRESHOLD (n, MUL_TOOM7_THRESHOLD)) + else if (BELOW_THRESHOLD (n, SQR_TOOM7_THRESHOLD)) { mpn_toom4_sqr_n (p, a, n); }