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.

@PeyaPeyaPeyang 
Your change (at version e22fceba40dbf4e92c1b66e3c27b975840d88867) is now ready 
to be sponsored by a Committer.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/30303#issuecomment-4147935698

Reply via email to