From 7f148ac675065f91ee51eda7dfb47c05d24459cf Mon Sep 17 00:00:00 2001 From: Alex Dyachenko Date: Tue, 22 Dec 2015 15:43:35 -0500 Subject: [PATCH] Comments cleaned up --- mpir.net/mpir.net/Random.h | 4 ++-- mpir.net/mpir.net/RandomFloat.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mpir.net/mpir.net/Random.h b/mpir.net/mpir.net/Random.h index 4df7b518..f15ac276 100644 --- a/mpir.net/mpir.net/Random.h +++ b/mpir.net/mpir.net/Random.h @@ -256,7 +256,7 @@ namespace MPIR /// to be more likely to trigger corner-case bugs. /// As with all expressions, the result is not computed until the expression is assigned to the Value property or consumed by a method. /// - /// The maximum absolute value for the exponent of the generated number. Generated exponent may be positive or negative. + /// The maximum absolute value for the exponent of the generated number (expressed in limbs). Generated exponent may be positive or negative. /// An expression object that, when assigned to the Value property or consumed by a primitive-returning method, generates the random number FloatExpression^ GetFloatChunky(mp_exp_t maxExponent); @@ -268,7 +268,7 @@ namespace MPIR /// /// number of mantissa limbs to generate. /// The sign of this parameter determines the sign of the generated mantissa. - /// The maximum absolute value for the exponent of the generated number. Generated exponent may be positive or negative. + /// The maximum absolute value for the exponent of the generated number (expressed in limbs). Generated exponent may be positive or negative. /// An expression object that, when assigned to the Value property or consumed by a primitive-returning method, generates the random number FloatExpression^ GetFloatLimbsChunky(mp_size_t limbCount, mp_exp_t maxExponent); diff --git a/mpir.net/mpir.net/RandomFloat.cpp b/mpir.net/mpir.net/RandomFloat.cpp index f19a46f0..2548ee6a 100644 --- a/mpir.net/mpir.net/RandomFloat.cpp +++ b/mpir.net/mpir.net/RandomFloat.cpp @@ -45,8 +45,8 @@ namespace MPIR MP(rrandomb)(destination, Left->_value, BITS_TO_LIMBS(MP(get_prec)(destination)), Right); } - //TODO investigate why exponent does not seem to be in the promised range //TODO implement "precision of destination" for context ops + //TODO investigate implementing raw IO for floats DEFINE_ASSIGNMENT_PROLOG(RandomLimbsChunky) {