[Gmp-commit] /var/hg/gmp: Improve udiv_w_sdiv declarations.
mercurial at gmplib.org
mercurial at gmplib.org
Fri Feb 3 15:51:29 CET 2012
details: /var/hg/gmp/rev/44083fea3ee4
changeset: 14604:44083fea3ee4
user: Torbjorn Granlund <tege at gmplib.org>
date: Fri Feb 03 15:51:26 2012 +0100
description:
Improve udiv_w_sdiv declarations.
diffstat:
ChangeLog | 6 ++++++
longlong.h | 1 +
mpn/generic/udiv_w_sdiv.c | 5 ++---
3 files changed, 9 insertions(+), 3 deletions(-)
diffs (46 lines):
diff -r a23759f9e720 -r 44083fea3ee4 ChangeLog
--- a/ChangeLog Fri Feb 03 13:39:33 2012 +0100
+++ b/ChangeLog Fri Feb 03 15:51:26 2012 +0100
@@ -1,3 +1,9 @@
+2012-02-03 Torbjorn Granlund <tege at gmplib.org>
+
+ * longlong.h (udiv_qrnnd from sdiv_qrnnd): Declare udiv_w_sdiv.
+
+ * mpn/generic/udiv_w_sdiv.c: Use c89 function header.
+
2012-02-03 Marco Bodrato <bodrato at mail.dm.unipi.it>
* mpz/fac_ui.c: mpz_oddfac_1 removed, with many related functions.
diff -r a23759f9e720 -r 44083fea3ee4 longlong.h
--- a/longlong.h Fri Feb 03 13:39:33 2012 +0100
+++ b/longlong.h Fri Feb 03 15:51:26 2012 +0100
@@ -2015,6 +2015,7 @@
(q) = __MPN(udiv_w_sdiv) (&__r, nh, nl, d); \
(r) = __r; \
} while (0)
+__GMP_DECLSPEC UWtype __MPN(udiv_w_sdiv) (UWtype *, UWtype, UWtype, UWtype);
#endif
/* If udiv_qrnnd was not defined for this processor, use __udiv_qrnnd_c. */
diff -r a23759f9e720 -r 44083fea3ee4 mpn/generic/udiv_w_sdiv.c
--- a/mpn/generic/udiv_w_sdiv.c Fri Feb 03 13:39:33 2012 +0100
+++ b/mpn/generic/udiv_w_sdiv.c Fri Feb 03 15:51:26 2012 +0100
@@ -9,7 +9,7 @@
GNU MP RELEASE.
-Copyright 1992, 1994, 1996, 2000, 2011 Free Software Foundation, Inc.
+Copyright 1992, 1994, 1996, 2000, 2011, 2012 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -31,8 +31,7 @@
#include "longlong.h"
mp_limb_t
-mpn_udiv_w_sdiv (rp, a1, a0, d)
- mp_limb_t *rp, a1, a0, d;
+mpn_udiv_w_sdiv (mp_limb_t *rp, mp_limb_t a1, mp_limb_t a0, mp_limb_t d)
{
mp_limb_t q, r;
mp_limb_t c0, c1, b1;
More information about the gmp-commit
mailing list