On Tue, 7 Jul 2026 04:50:56 GMT, Jatin Bhateja <[email protected]> wrote:
> Currently Float16Vector.toString prints raw short values from the backing
> storage, i.e. the IEEE 754 binary16 bit encodings. Patch uses
> Float16.toString routine to print the lane values in more user-friendly
> human-readable floating-point format.
> In addition, the various bit representations of NaN are canonicalized so that
> such lanes are simply printed as "NaN". Float16.toString API renders each
> lane as a human-readable floating-point value and prints canonical text
> ("NaN",
> "Infinity", "-0.0")
>
> Kindly review and share your feedback.
>
> Best Regards,
> Jatin
>
> ---------
> - [x] I confirm that I make this contribution in accordance with the [OpenJDK
> Interim AI Policy](https://openjdk.org/legal/ai).
This pull request has now been integrated.
Changeset: 6e2a4f84
Author: Jatin Bhateja <[email protected]>
URL:
https://git.openjdk.org/jdk/commit/6e2a4f847fc91ab25a167ca833bdeaaad5ee8d48
Stats: 40 lines in 8 files changed: 30 ins; 0 del; 10 mod
8386322: Float16Vector.toString should render lane values using Float16.toString
Reviewed-by: psandoz, rgiulietti
-------------
PR: https://git.openjdk.org/jdk/pull/31800