On Wed, 18 Mar 2026 18:57:15 GMT, Daisuke Yamazaki <[email protected]> wrote:
> Replace loop-based normalisation with `Long.numberOfTrailingZeros` in > `BigDecimal(double, MathContext)` constructor. > > Compute the number of trailing(rightmost) zero bits in the significand and > perform a single shift, > instead of repeated shifting in a loop. > This preserves behaviour and improves performance. Thanks @PeyaPeyaPeyang. Please wait 24 hours before integrating. ------------- Marked as reviewed by rgiulietti (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/30303#pullrequestreview-4021628555
