[Gmp-commit] /var/hg/gmp: gmp-h.in (mpn_zero_p): Stop supporting zero size.

mercurial at gmplib.org mercurial at gmplib.org
Mon Jun 1 04:23:45 UTC 2015


details:   /var/hg/gmp/rev/f2964bc8fb03
changeset: 16669:f2964bc8fb03
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Mon Jun 01 06:12:25 2015 +0200
description:
gmp-h.in (mpn_zero_p): Stop supporting zero size.

diffstat:

 gmp-h.in |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r cb5da779cc81 -r f2964bc8fb03 gmp-h.in
--- a/gmp-h.in	Sun May 31 06:41:53 2015 +0200
+++ b/gmp-h.in	Mon Jun 01 06:12:25 2015 +0200
@@ -2168,7 +2168,7 @@
 int
 mpn_zero_p (mp_srcptr __gmp_p, mp_size_t __gmp_n) __GMP_NOTHROW
 {
-  if (__gmp_n != 0)
+  /* if (__GMP_LIKELY (__gmp_n > 0)) */
     do {
       if (__gmp_p[--__gmp_n] != 0)
 	return 0;


More information about the gmp-commit mailing list