On Wed, 20 Feb 2019, Jakub Jelinek wrote: > + /* mpc_norm assumes it can square a number without bothering with > + with range scaling, so until that is fixed, double the minimum > + and maximum exponents, plus add some buffer for arithmetics > + on the squared numbers. */
Note that I think such issues are pervasive in MPC; it's not just that one function. MPFR is generally careful about using a larger exponent range internally (there might still be issues with very big exponents where they aren't handled specially to avoid internal overflow, but the maximum MPFR exponent range is very large); MPC doesn't generally try to handle restricted exponent ranges. -- Joseph S. Myers jos...@codesourcery.com