Re: RFR: 8326227: Fix a rare rounding error affecting RandomSupport::computeNextGaussian

2024-02-20 Thread Joe Darcy
On Mon, 5 Feb 2024 04:25:16 GMT, Chris Hennick wrote: > This provides a slightly more accurate bounding limit for > `computeNextExponentialSoftCapped` when the computed bound is greater than > `(1.0p53 - 1.0) * DoubleZigguratTables.exponentialX0`. This could cause the > `while (computeNextExpo

Re: RFR: 8326227: Fix a rare rounding error affecting RandomSupport::computeNextGaussian

2024-02-20 Thread Chris Hennick
On Mon, 5 Feb 2024 04:25:16 GMT, Chris Hennick wrote: > This provides a slightly more accurate bounding limit for > `computeNextExponentialSoftCapped` when the computed bound is greater than > `(1.0p53 - 1.0) * DoubleZigguratTables.exponentialX0`. This could cause the > `while (computeNextExpo

Re: RFR: 8326227: Fix a rare rounding error affecting RandomSupport::computeNextGaussian

2024-02-20 Thread Jaikiran Pai
On Mon, 5 Feb 2024 04:25:16 GMT, Chris Hennick wrote: > This provides a slightly more accurate bounding limit for > `computeNextExponentialSoftCapped` when the computed bound is greater than > `(1.0p53 - 1.0) * DoubleZigguratTables.exponentialX0`. This could cause the > `while (computeNextExpo

RFR: 8326227: Fix a rare rounding error affecting RandomSupport::computeNextGaussian

2024-02-20 Thread Chris Hennick
This provides a slightly more accurate bounding limit for `computeNextExponentialSoftCapped` when the computed bound is greater than `(1.0p53 - 1.0) * DoubleZigguratTables.exponentialX0`. This could cause the `while (computeNextExponentialSoftCapped(rng, limit) < limit)` check in `computeNextGa