summaryrefslogtreecommitdiff
path: root/set_uj.c
diff options
context:
space:
mode:
authorzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2006-11-27 08:56:12 +0000
committerzimmerma <zimmerma@280ebfd0-de03-0410-8827-d642c229c3f4>2006-11-27 08:56:12 +0000
commit07dbf7b3e2ed9d73bad1a57b1379fa85ca81b672 (patch)
tree39a2668c88ad5755022e560aeb86ea44ce787403 /set_uj.c
parent5ce72dacb19af5f6d38b7fcd383ad44859207aa4 (diff)
downloadmpfr-07dbf7b3e2ed9d73bad1a57b1379fa85ca81b672.tar.gz
added comment about last change
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@4299 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'set_uj.c')
-rw-r--r--set_uj.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/set_uj.c b/set_uj.c
index 87989fe55..24730802c 100644
--- a/set_uj.c
+++ b/set_uj.c
@@ -77,6 +77,9 @@ mpfr_set_uj_2exp (mpfr_t x, uintmax_t j, intmax_t e, mp_rnd_t rnd)
limb = yp[0] = j;
else
{
+ /* Note: either BITS_PER_MP_LIMB = uintmax_bit_size, then k = 1 the
+ shift j >>= bpml is never done, or BITS_PER_MP_LIMB < uintmax_bit_size
+ and bpml = BITS_PER_MP_LIMB. */
for (i = 0; i < k; i++, j >>= bpml)
yp[i] = j; /* Only the low bits are copied */