Mercurial > hg > xemacs-beta
changeset 5646:7aa144d1404b
Remove a redundant double division, number-mp.c:bignum_ceil().
src/ChangeLog addition:
2012-04-14 Aidan Kehoe <kehoea@parhasard.net>
* number-mp.c (bignum_ceil): Remove a redundant double division
from this function.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Sat, 14 Apr 2012 21:18:11 +0100 |
parents | 5d3bb1100832 |
children | 1d9f603e9125 |
files | src/ChangeLog src/number-mp.c |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Sat Apr 07 21:57:31 2012 +0100 +++ b/src/ChangeLog Sat Apr 14 21:18:11 2012 +0100 @@ -5,6 +5,11 @@ find it. It wasn't needed anyway, so remove the include under cygwin. +2012-04-14 Aidan Kehoe <kehoea@parhasard.net> + + * number-mp.c (bignum_ceil): Remove a redundant double division + from this function. + 2012-01-08 Aidan Kehoe <kehoea@parhasard.net> * device-x.c:
--- a/src/number-mp.c Sat Apr 07 21:57:31 2012 +0100 +++ b/src/number-mp.c Sat Apr 14 21:18:11 2012 +0100 @@ -322,7 +322,7 @@ void bignum_ceil (bignum quotient, bignum N, bignum D) { MP_MDIV (N, D, quotient, intern_bignum); - MP_MDIV (N, D, quotient, intern_bignum); + if (MP_MCMP (intern_bignum, bignum_zero) != 0) { short signN = MP_MCMP (N, bignum_zero);