[wide-int] Various division fixes

2013-10-31 Thread Richard Sandiford
There are several Ada failures on the branch, all related to division and modulus: - div_floor adjusted truncated negative quotients in the wrong direction (up instead of down). E.g. -5 /[fl] 2 gave -1 rather than -3. - {div,mod}_round used the wrong condition to check when rounding was needed

Re: [wide-int] Various division fixes

2013-10-31 Thread Kenneth Zadeck
On 10/31/2013 05:01 AM, Richard Sandiford wrote: There are several Ada failures on the branch, all related to division and modulus: - div_floor adjusted truncated negative quotients in the wrong direction (up instead of down). E.g. -5 /[fl] 2 gave -1 rather than -3. - {div,mod}_round used t