diff options
author | Torbjorn Granlund <tege@gmplib.org> | 2011-11-28 16:35:07 +0100 |
---|---|---|
committer | Torbjorn Granlund <tege@gmplib.org> | 2011-11-28 16:35:07 +0100 |
commit | 84e1db5df779cff97b211a773ae2577abb99fa32 (patch) | |
tree | f6c38e4d5d421149191d2745e064e9d53e8b2494 | |
parent | ff7620568f0f51316d73501a764ed229bd0d7923 (diff) | |
download | gmp-84e1db5df779cff97b211a773ae2577abb99fa32.tar.gz |
Use CNST_LIMB for some constants.
-rw-r--r-- | mpn/generic/udiv_w_sdiv.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mpn/generic/udiv_w_sdiv.c b/mpn/generic/udiv_w_sdiv.c index c01f95847..ceefd1b5f 100644 --- a/mpn/generic/udiv_w_sdiv.c +++ b/mpn/generic/udiv_w_sdiv.c @@ -9,7 +9,7 @@ GNU MP RELEASE. -Copyright 1992, 1994, 1996, 2000 Free Software Foundation, Inc. +Copyright 1992, 1994, 1996, 2000, 2011 Free Software Foundation, Inc. This file is part of the GNU MP Library. @@ -116,12 +116,12 @@ mpn_udiv_w_sdiv (rp, a1, a0, d) { /* Hence a1 = d - 1 = 2*b1 - 1 */ if (a0 >= -d) { - q = -1; + q = -CNST_LIMB(1); r = a0 + d; } else { - q = -2; + q = -CNST_LIMB(2); r = a0 + 2*d; } } |