summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2004-03-10 22:50:26 +0100
committerKevin Ryde <user42@zip.com.au>2004-03-10 22:50:26 +0100
commit8cc2bd9e11d9c9e2bd79553a8e8a1bc9cfa2a166 (patch)
tree121063073ab80669808254e0015d1d841a590881
parentbac2b8d356f585bebc7a8c90cbebfeeb293cde14 (diff)
downloadgmp-8cc2bd9e11d9c9e2bd79553a8e8a1bc9cfa2a166.tar.gz
* mpz/aors_ui.h, mpz/cdiv_q_ui.c, mpz/cdiv_qr_ui.c, mpz/cdiv_r_ui.c,
mpz/cdiv_ui.c, mpz/ui_sub.c, mpz/fdiv_q_ui.c, mpz/fdiv_qr_ui.c, mpz/fdiv_r_ui.c, mpz/fdiv_ui.c, mpz/gcd_ui.c, mpz/iset_ui.c, mpz/lcm_ui.c, mpz/set_ui.c, mpz/tdiv_q_ui.c, mpz/tdiv_qr_ui.c, mpz/tdiv_r_ui.c, mpz/tdiv_ui.c, mpf/div_ui.c, mpf/mul_ui.c [longlong+nails]: Amend #if to avoid warnings about shift amount.
-rw-r--r--mpz/aors_ui.h4
-rw-r--r--mpz/cdiv_q_ui.c4
-rw-r--r--mpz/cdiv_qr_ui.c5
-rw-r--r--mpz/cdiv_r_ui.c4
4 files changed, 9 insertions, 8 deletions
diff --git a/mpz/aors_ui.h b/mpz/aors_ui.h
index 0b59cb36d..d7e922deb 100644
--- a/mpz/aors_ui.h
+++ b/mpz/aors_ui.h
@@ -1,7 +1,7 @@
/* mpz_add_ui, mpz_sub_ui -- Add or subtract an mpz_t and an unsigned
one-word integer.
-Copyright 1991, 1993, 1994, 1996, 1999, 2000, 2001, 2002 Free Software
+Copyright 1991, 1993, 1994, 1996, 1999, 2000, 2001, 2002, 2004 Free Software
Foundation, Inc.
This file is part of the GNU MP Library.
@@ -54,7 +54,7 @@ FUNCTION (mpz_ptr w, mpz_srcptr u, unsigned long int vval)
mp_size_t usize, wsize;
mp_size_t abs_usize;
-#if GMP_NAIL_BITS != 0
+#if BITS_PER_ULONG > GMP_NUMB_BITS /* avoid warnings about shift amount */
if (vval > GMP_NUMB_MAX)
{
mpz_t v;
diff --git a/mpz/cdiv_q_ui.c b/mpz/cdiv_q_ui.c
index d238cffef..2483670a8 100644
--- a/mpz/cdiv_q_ui.c
+++ b/mpz/cdiv_q_ui.c
@@ -3,7 +3,7 @@
always fit into the return type, the negative of the true remainder is
returned.
-Copyright 1994, 1996, 1999, 2001, 2002 Free Software Foundation, Inc.
+Copyright 1994, 1996, 1999, 2001, 2002, 2004 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -47,7 +47,7 @@ mpz_cdiv_q_ui (mpz_ptr quot, mpz_srcptr dividend, unsigned long int divisor)
qp = PTR(quot);
np = PTR(dividend);
-#if GMP_NAIL_BITS != 0
+#if BITS_PER_ULONG > GMP_NUMB_BITS /* avoid warnings about shift amount */
if (divisor > GMP_NUMB_MAX)
{
mp_limb_t dp[2], rp[2];
diff --git a/mpz/cdiv_qr_ui.c b/mpz/cdiv_qr_ui.c
index b8491692a..4e4a9bc84 100644
--- a/mpz/cdiv_qr_ui.c
+++ b/mpz/cdiv_qr_ui.c
@@ -3,7 +3,8 @@
always fit into the return type, the negative of the true remainder is
returned.
-Copyright 1994, 1995, 1996, 1999, 2001, 2002 Free Software Foundation, Inc.
+Copyright 1994, 1995, 1996, 1999, 2001, 2002, 2004 Free Software Foundation,
+Inc.
This file is part of the GNU MP Library.
@@ -48,7 +49,7 @@ mpz_cdiv_qr_ui (mpz_ptr quot, mpz_ptr rem, mpz_srcptr dividend, unsigned long in
qp = PTR(quot);
np = PTR(dividend);
-#if GMP_NAIL_BITS != 0
+#if BITS_PER_ULONG > GMP_NUMB_BITS /* avoid warnings about shift amount */
if (divisor > GMP_NUMB_MAX)
{
mp_limb_t dp[2];
diff --git a/mpz/cdiv_r_ui.c b/mpz/cdiv_r_ui.c
index 74a918da7..70f338ff7 100644
--- a/mpz/cdiv_r_ui.c
+++ b/mpz/cdiv_r_ui.c
@@ -3,7 +3,7 @@
always fit into the return type, the negative of the true remainder is
returned.
-Copyright 1994, 1995, 1996, 2001, 2002 Free Software Foundation, Inc.
+Copyright 1994, 1995, 1996, 2001, 2002, 2004 Free Software Foundation, Inc.
This file is part of the GNU MP Library.
@@ -44,7 +44,7 @@ mpz_cdiv_r_ui (mpz_ptr rem, mpz_srcptr dividend, unsigned long int divisor)
nn = ABS(ns);
np = PTR(dividend);
-#if GMP_NAIL_BITS != 0
+#if BITS_PER_ULONG > GMP_NUMB_BITS /* avoid warnings about shift amount */
if (divisor > GMP_NUMB_MAX)
{
mp_limb_t dp[2];