Re: [wide-int] Simplify div_if_zero_remainder

2013-11-09 Thread Kenneth Zadeck
On 11/09/2013 05:55 AM, Richard Sandiford wrote: wide-int adds some code to div_if_zero_remainder to handle mismatched signs. I think it's trying to make sure that we do the division to "infinite" precision, extending each operand according to its own sign. We can do that more easily using wi::t

[wide-int] Simplify div_if_zero_remainder

2013-11-09 Thread Richard Sandiford
wide-int adds some code to div_if_zero_remainder to handle mismatched signs. I think it's trying to make sure that we do the division to "infinite" precision, extending each operand according to its own sign. We can do that more easily using wi::to_widest. Using to::widest should also be chaper.