APPROVE COMMIT
NOTE: This patch has been committed.
# HG changeset patch
# User Aidan Kehoe <kehoea(a)parhasard.net>
# Date 1334434691 -3600
# Node ID 7aa144d1404b8ce10cbbb3dfb0faf0e31f04b475
# Parent 5d3bb11008322a79591b3535a0658ab36d6610f2
Remove a redundant double division, number-mp.c:bignum_ceil().
src/ChangeLog addition:
2012-04-14 Aidan Kehoe <kehoea(a)parhasard.net>
* number-mp.c (bignum_ceil): Remove a redundant double division
from this function.
diff -r 5d3bb1100832 -r 7aa144d1404b src/ChangeLog
--- 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(a)parhasard.net>
+
+ * number-mp.c (bignum_ceil): Remove a redundant double division
+ from this function.
+
2012-01-08 Aidan Kehoe <kehoea(a)parhasard.net>
* device-x.c:
diff -r 5d3bb1100832 -r 7aa144d1404b src/number-mp.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);
--
‘Iodine deficiency was endemic in parts of the UK until, through what has been
described as “an unplanned and accidental public health triumph”, iodine was
added to cattle feed to improve milk production in the 1930s.’
(EN Pearce, Lancet, June 2011)
_______________________________________________
XEmacs-Patches mailing list
XEmacs-Patches(a)xemacs.org
http://lists.xemacs.org/mailman/listinfo/xemacs-patches