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

mercurial at gmplib.org mercurial at gmplib.org
Tue Oct 13 05:40:29 UTC 2015


details:   /var/hg/gmp/rev/2146d00b585a
changeset: 16847:2146d00b585a
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Tue Oct 13 07:39:46 2015 +0200
description:
Whitespace.

details:   /var/hg/gmp/rev/64781a743bf9
changeset: 16848:64781a743bf9
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Tue Oct 13 07:40:08 2015 +0200
description:
mpf/pow_ui.c: Increased precision of partial results

details:   /var/hg/gmp/rev/20f223c1eecf
changeset: 16849:20f223c1eecf
user:      Marco Bodrato <bodrato at mail.dm.unipi.it>
date:      Tue Oct 13 07:40:13 2015 +0200
description:
ChangeLog

diffstat:

 ChangeLog                       |  4 ++++
 mpf/pow_ui.c                    |  4 ++--
 mpn/arm/v7a/cora15/gmp-mparam.h |  2 +-
 3 files changed, 7 insertions(+), 3 deletions(-)

diffs (42 lines):

diff -r 9f8c7c1e4dbe -r 20f223c1eecf ChangeLog
--- a/ChangeLog	Tue Oct 13 00:59:54 2015 +0200
+++ b/ChangeLog	Tue Oct 13 07:40:13 2015 +0200
@@ -1,3 +1,7 @@
+2015-10-13 Marco Bodrato <bodrato at mail.dm.unipi.it>
+
+	* mpf/pow_ui.c: Increased precision of partial results.
+
 2015-10-12  Torbjörn Granlund  <torbjorng at google.com>
 
 	* configure.ac: Reject AVX for NetBSD.
diff -r 9f8c7c1e4dbe -r 20f223c1eecf mpf/pow_ui.c
--- a/mpf/pow_ui.c	Tue Oct 13 00:59:54 2015 +0200
+++ b/mpf/pow_ui.c	Tue Oct 13 07:40:13 2015 +0200
@@ -1,6 +1,6 @@
 /* mpf_pow_ui -- Compute b^e.
 
-Copyright 1998, 1999, 2001, 2012 Free Software Foundation, Inc.
+Copyright 1998, 1999, 2001, 2012, 2015 Free Software Foundation, Inc.
 
 This file is part of the GNU MP Library.
 
@@ -36,7 +36,7 @@
 {
   mpf_t b2;
 
-  mpf_init2 (b2, mpf_get_prec (r));
+  mpf_init2 (b2, mpf_get_prec (r) + 1);
   mpf_set (b2, b);
 
   if ((e & 1) != 0)
diff -r 9f8c7c1e4dbe -r 20f223c1eecf mpn/arm/v7a/cora15/gmp-mparam.h
--- a/mpn/arm/v7a/cora15/gmp-mparam.h	Tue Oct 13 00:59:54 2015 +0200
+++ b/mpn/arm/v7a/cora15/gmp-mparam.h	Tue Oct 13 07:40:13 2015 +0200
@@ -1,6 +1,6 @@
 /* gmp-mparam.h -- Compiler/machine parameter header file.
 
-   Copyright 1991, 1993, 1994, 1999-2003, 2009, 2010, 2012-2015 Free Software
+Copyright 1991, 1993, 1994, 1999-2003, 2009, 2010, 2012-2015 Free Software
 Foundation, Inc.
 
 This file is part of the GNU MP Library.


More information about the gmp-commit mailing list