On Thu, 19 Nov 2026 20:01:47 GMT, Joe Darcy <[email protected]> wrote:
> Change Float16.shortValue to do a one-step conversion with `short` without an > intermediate stop through `int`. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). While I understand the rationale of this proposal, I think it would be wiser to wait until a general numeric conversion mechanism is discussed in the context of Valhalla explorations related to Java numerics. Even with this proposal in place, a `Float16`->`byte` conversion would still expose the same sin as JLS 5.1.3 currently does for, say, `float`->`short`. ------------- PR Comment: https://git.openjdk.org/jdk/pull/33980#issuecomment-7044469856
