[Gmp-commit] /var/hg/gmp: 2 new changesets

mercurial at gmplib.org mercurial at gmplib.org
Fri Feb 2 16:01:08 UTC 2018


details:   /var/hg/gmp/rev/fb86ef013510
changeset: 17549:fb86ef013510
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Fri Feb 02 17:00:27 2018 +0100
description:
printf/snprntffuns.c: Use __GMP_FREE_FUNC_TYPE.

details:   /var/hg/gmp/rev/df4f222d213c
changeset: 17550:df4f222d213c
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Fri Feb 02 17:00:53 2018 +0100
description:
Changelog

diffstat:

 ChangeLog            |  14 +++++++++++++-
 printf/snprntffuns.c |   2 +-
 2 files changed, 14 insertions(+), 2 deletions(-)

diffs (43 lines):

diff -r f1acd9dd0db7 -r df4f222d213c ChangeLog
--- a/ChangeLog	Thu Feb 01 20:32:42 2018 +0100
+++ b/ChangeLog	Fri Feb 02 17:00:53 2018 +0100
@@ -2,6 +2,18 @@
 
 	* longlong.h (i586): Remove assert.
 
+2018-01-30 Marco Bodrato <bodrato at mail.dm.unipi.it>
+
+	* mpz/and.c: Rearrange the 3 cases, both <0, both >=0, one and one.
+	* mpz/ior.c: Likewise.
+	* mpz/xor.c: Likewise.
+
+	* mpz/bin_uiui.c (mul[4-8]): Reduce the number of multiplications.
+
+	* printf/doprnt.c: Use __GMP_FREE_FUNC_TYPE.
+	* printf/doprntf.c: Likewise.
+	* printf/snprntffuns.c: Likewise, and use size_t instead of int.
+
 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.
@@ -19,7 +31,7 @@
 
 	* mode1o.asm (binvert_limb_table): Remove ".protected", add ".hidden".
 	* v6/mode1o.asm: Likewise.
-	
+
 2018-01-02  Torbjörn Granlund  <tg at gmplib.org>
 
 	* mpn/powerpc64/mode64/divrem_2.asm: Use different rlwinm variant (to
diff -r f1acd9dd0db7 -r df4f222d213c printf/snprntffuns.c
--- a/printf/snprntffuns.c	Thu Feb 01 20:32:42 2018 +0100
+++ b/printf/snprntffuns.c	Fri Feb 02 17:00:53 2018 +0100
@@ -102,7 +102,7 @@
       p = __GMP_ALLOCATE_FUNC_TYPE (alloc, char);
       va_copy (ap, orig_ap);
       ret = vsnprintf (p, alloc, fmt, ap);
-      (*__gmp_free_func) (p, alloc);
+      __GMP_FREE_FUNC_TYPE (p, alloc, char);
     }
   while (ret == alloc-1 || ret == -1);
 


More information about the gmp-commit mailing list