summaryrefslogtreecommitdiff
path: root/src/invert_limb.h
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-06-02 22:22:50 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2018-06-02 22:22:50 +0000
commit4af41ab9c82dbfd745f53d4938e75ca9062eb011 (patch)
tree81d42ea4bd4fbfa40196ab4bd2f5347975e3ff34 /src/invert_limb.h
parent3d748817f7cbadf95540ac27681588ced9981ecd (diff)
downloadmpfr-4af41ab9c82dbfd745f53d4938e75ca9062eb011.tar.gz
[src/invert_limb.h] fixed two typos reported by Marco Bodrato.
Note that with the current MPFR code, these typos did not have any consequence. (merged changeset r12749 from the trunk) git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/branches/4.0@12750 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/invert_limb.h')
-rw-r--r--src/invert_limb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/invert_limb.h b/src/invert_limb.h
index 6cd0f72e9..0e62750e3 100644
--- a/src/invert_limb.h
+++ b/src/invert_limb.h
@@ -123,7 +123,7 @@ static const mp_limb_t invert_limb_table2[256] =
_e = - _v2 * _d63 + ((_v2 & -_d0) >> 1); \
umul_hi (_h, _v2, _e); \
_v3 = (_v2 << 31) + (_h >> 1); \
- umul_ppmm (_h, _l, _v3, d); \
+ umul_ppmm (_h, _l, _v3, _d); \
/* v3 is too small iff (h+d)*2^64+l+d < 2^128 */ \
add_ssaaaa(_h, _l, _h, _l, _d, _d); \
MPFR_ASSERTD(_h == MPFR_LIMB_ZERO || -_h == MPFR_LIMB_ONE); \
@@ -223,7 +223,7 @@ static const mp_limb_t invert_limb_table[512] =
_e = - _v1 * _d31 + ((_v1 & - _d0) >> 1); \
umul_ppmm (_h, _l, _v1, _e); \
_v2 = (_v1 << 15) + (_h >> 1); \
- umul_ppmm (_h, _l, _v2, d); \
+ umul_ppmm (_h, _l, _v2, _d); \
/* v2 is too small iff (h+d)*2^32+l+d < 2^64 */ \
add_ssaaaa(_h, _l, _h, _l, _d, _d); \
MPFR_ASSERTD(_h == MPFR_LIMB_ZERO || -_h == MPFR_LIMB_ONE); \