[Gmp-commit] /var/hg/gmp: Remove assertion in longlong.h, which contradicts C...

mercurial at gmplib.org mercurial at gmplib.org
Thu Feb 1 19:32:50 UTC 2018


details:   /var/hg/gmp/rev/f1acd9dd0db7
changeset: 17548:f1acd9dd0db7
user:      Marc Glisse <marc.glisse at inria.fr>
date:      Thu Feb 01 20:32:42 2018 +0100
description:
Remove assertion in longlong.h, which contradicts COUNT_LEADING_ZEROS_0.

diffstat:

 ChangeLog  |  4 ++++
 longlong.h |  1 -
 2 files changed, 4 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 339f813ab986 -r f1acd9dd0db7 ChangeLog
--- a/ChangeLog	Wed Jan 31 04:30:38 2018 +0100
+++ b/ChangeLog	Thu Feb 01 20:32:42 2018 +0100
@@ -1,3 +1,7 @@
+2018-02-01  Marc Glisse  <marc.glisse at inria.fr>
+
+	* longlong.h (i586): Remove assert.
+
 2018-01-15 Marco Bodrato <bodrato at mail.dm.unipi.it>
 
 	* tests/mpz/t-bin.c: Extended tests for bin_ui and uint border cases.
diff -r 339f813ab986 -r f1acd9dd0db7 longlong.h
--- a/longlong.h	Wed Jan 31 04:30:38 2018 +0100
+++ b/longlong.h	Thu Feb 01 20:32:42 2018 +0100
@@ -961,7 +961,6 @@
       double    d;							\
       unsigned  a[2];							\
     } __u;								\
-    ASSERT ((n) != 0);							\
     __u.d = (UWtype) (n);						\
     (c) = 0x3FF + 31 - (__u.a[1] >> 20);				\
   } while (0)


More information about the gmp-commit mailing list