summaryrefslogtreecommitdiff
path: root/mpz/tdiv_q_ui.c
diff options
context:
space:
mode:
authorKevin Ryde <user42@zip.com.au>2004-03-10 22:53:42 +0100
committerKevin Ryde <user42@zip.com.au>2004-03-10 22:53:42 +0100
commitc3107449df767c6d6f8e3a244652ea68c5049918 (patch)
treeacc954e51a55ef2146d8ca0419cbf190d78fa02a /mpz/tdiv_q_ui.c
parent8cc2bd9e11d9c9e2bd79553a8e8a1bc9cfa2a166 (diff)
downloadgmp-c3107449df767c6d6f8e3a244652ea68c5049918.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.
Diffstat (limited to 'mpz/tdiv_q_ui.c')
-rw-r--r--mpz/tdiv_q_ui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mpz/tdiv_q_ui.c b/mpz/tdiv_q_ui.c
index de5908e2c..a5814f4df 100644
--- a/mpz/tdiv_q_ui.c
+++ b/mpz/tdiv_q_ui.c
@@ -1,8 +1,8 @@
/* mpz_tdiv_q_ui(quot, dividend, divisor_limb)
-- Divide DIVIDEND by DIVISOR_LIMB and store the result in QUOT.
-Copyright 1991, 1993, 1994, 1996, 1998, 2001, 2002 Free Software Foundation,
-Inc.
+Copyright 1991, 1993, 1994, 1996, 1998, 2001, 2002, 2004 Free Software
+Foundation, Inc.
This file is part of the GNU MP Library.
@@ -46,7 +46,7 @@ mpz_tdiv_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];