[flang] fix comments

Original-commit: flang-compiler/f18@a01eaaacc2
Reviewed-on: https://github.com/flang-compiler/f18/pull/228
Tree-same-pre-rewrite: false
This commit is contained in:
peter klausler 2018-11-19 10:29:04 -08:00
parent 609d3824ff
commit 791ef8c407
1 changed files with 3 additions and 2 deletions

View File

@ -50,12 +50,13 @@ public:
static constexpr std::uint64_t exponentBias{maxExponent / 2};
// Decimal precision of a binary floating-point representation is
// actual the base-5 precision.
// actually the same as the base-5 precision, as factors of two
// can be accommodated by the binary exponent.
// log(2)/log(5) = 0.430+ in any base.
// Calculate "precision*0.43" with integer arithmetic so as to be constexpr.
static constexpr int decimalDigits{(precision * 43) / 100};
// Associates a decimal exponent with an integral value for formmatting.
// Associates a decimal exponent with an integral value for formatting.
struct ScaledDecimal {
bool negative{false};
Word integer; // unsigned