[Gmp-commit] /var/hg/gmp-5.0: Improve udiv_w_sdiv declarations.

mercurial at gmplib.org mercurial at gmplib.org
Fri Feb 3 15:51:34 CET 2012


details:   /var/hg/gmp-5.0/rev/8d353f5c64ce
changeset: 13538:8d353f5c64ce
user:      Torbjorn Granlund <tege at gmplib.org>
date:      Fri Feb 03 15:50:41 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 84db00493847 -r 8d353f5c64ce ChangeLog
--- a/ChangeLog	Thu Feb 02 23:08:41 2012 +0100
+++ b/ChangeLog	Fri Feb 03 15:50:41 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-02 Marco Bodrato <bodrato at mail.dm.unipi.it>
 
 	* mpn/generic/toom_interpolate_16pts.c: Correct an unlikely 32-bit bug.
diff -r 84db00493847 -r 8d353f5c64ce longlong.h
--- a/longlong.h	Thu Feb 02 23:08:41 2012 +0100
+++ b/longlong.h	Fri Feb 03 15:50:41 2012 +0100
@@ -2014,6 +2014,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 84db00493847 -r 8d353f5c64ce mpn/generic/udiv_w_sdiv.c
--- a/mpn/generic/udiv_w_sdiv.c	Thu Feb 02 23:08:41 2012 +0100
+++ b/mpn/generic/udiv_w_sdiv.c	Fri Feb 03 15:50:41 2012 +0100
@@ -9,7 +9,7 @@
    GNU MP RELEASE.
 
 
-Copyright 1992, 1994, 1996, 2000 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