Hello GMP developers, Now that mpn_mul no longer dispatches to mpn_sqr, the squaring optimization is missing in mpz_addmul/mpz_submul. That is, mpz_addmul(sum, a, a); is noticeably slower than mpz_mul(tmp, a, a); mpz_add(sum, sum, tmp); This should be easy to fix. Fredrik