Simplify significand normalization in BigDecimal(double, MathContext) constructor

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P5
    • None
    • Affects Version/s: None
    • Component/s: core-libs

      The significand normalization in BigDecimal(double, MathContext) constructor ensures the least significant bit is 1. It uses a loop that can be optimized with the use of Long.numberOfTrailingZeros instead.

            Assignee:
            Unassigned
            Reporter:
            Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: