mirror of
https://github.com/boostorg/multiprecision.git
synced 2026-02-19 14:32:35 +00:00
Tidy up mangled comments
This commit is contained in:
@@ -829,7 +829,8 @@ inline void eval_divide(cpp_bin_float<Digits, DigitBase, Allocator, Exponent, Mi
|
||||
//
|
||||
// q + r/v = u/v
|
||||
//
|
||||
// From this, assuming q has "cpp_bin_float<Digits, DigitBase, Allocator, Exponent, MinE, MaxE>::bit_count" cpp_bin_float<Digits, DigitBase, Allocator, Exponent, MinE, MaxE>::bit_count, we only need to determine whether
|
||||
// From this, assuming q has cpp_bin_float<Digits, DigitBase, Allocator, Exponent, MinE, MaxE>::bit_count
|
||||
// bits we only need to determine whether
|
||||
// r/v is less than, equal to, or greater than 0.5 to determine rounding -
|
||||
// this we can do with a shift and comparison.
|
||||
//
|
||||
@@ -844,13 +845,16 @@ inline void eval_divide(cpp_bin_float<Digits, DigitBase, Allocator, Exponent, Mi
|
||||
eval_left_shift(t, cpp_bin_float<Digits, DigitBase, Allocator, Exponent, MinE, MaxE>::bit_count);
|
||||
eval_qr(t, t2, q, r);
|
||||
//
|
||||
// We now have either "cpp_bin_float<Digits, DigitBase, Allocator, Exponent, MinE, MaxE>::bit_count" or "cpp_bin_float<Digits, DigitBase, Allocator, Exponent, MinE, MaxE>::bit_count+1" significant cpp_bin_float<Digits, DigitBase, Allocator, Exponent, MinE, MaxE>::bit_count in q.
|
||||
// We now have either "cpp_bin_float<Digits, DigitBase, Allocator, Exponent, MinE, MaxE>::bit_count"
|
||||
// or "cpp_bin_float<Digits, DigitBase, Allocator, Exponent, MinE, MaxE>::bit_count+1" significant
|
||||
// bits in q.
|
||||
//
|
||||
static const unsigned limb_bits = sizeof(limb_type) * CHAR_BIT;
|
||||
if(eval_bit_test(q, cpp_bin_float<Digits, DigitBase, Allocator, Exponent, MinE, MaxE>::bit_count))
|
||||
{
|
||||
//
|
||||
// OK we have cpp_bin_float<Digits, DigitBase, Allocator, Exponent, MinE, MaxE>::bit_count+1 cpp_bin_float<Digits, DigitBase, Allocator, Exponent, MinE, MaxE>::bit_count, so we already have rounding info,
|
||||
// OK we have cpp_bin_float<Digits, DigitBase, Allocator, Exponent, MinE, MaxE>::bit_count+1 bits,
|
||||
// so we already have rounding info,
|
||||
// we just need to changes things if the last bit is 1 and the
|
||||
// remainder is non-zero (ie we do not have a tie).
|
||||
//
|
||||
@@ -863,7 +867,7 @@ inline void eval_divide(cpp_bin_float<Digits, DigitBase, Allocator, Exponent, Mi
|
||||
else
|
||||
{
|
||||
//
|
||||
// We have exactly "cpp_bin_float<Digits, DigitBase, Allocator, Exponent, MinE, MaxE>::bit_count" cpp_bin_float<Digits, DigitBase, Allocator, Exponent, MinE, MaxE>::bit_count in q.
|
||||
// We have exactly "cpp_bin_float<Digits, DigitBase, Allocator, Exponent, MinE, MaxE>::bit_count" bits in q.
|
||||
// Get rounding info, which we can get by comparing 2r with v.
|
||||
// We want to call copy_and_round to handle rounding and general cleanup,
|
||||
// so we'll left shift q and add some fake digits on the end to represent
|
||||
|
||||
Reference in New Issue
Block a user