RFR: 8301226: Add clamp() methods to java.lang.Math and to StrictMath [v2]

Quan Anh Mai qamai at openjdk.org
Wed Feb 8 09:48:46 UTC 2023


On Tue, 7 Feb 2023 13:30:24 GMT, Tagir F. Valeev <tvaleev at openjdk.org> wrote:

>> A pure `int`‑only overload doesn’t have to go through the `int` → `long` → `int` conversion.
>
> Is this a real problem?

This should not be a problem with C2, and with the lower compilation levels this insignificant impact seems to not justify adding an overload

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

PR: https://git.openjdk.org/jdk/pull/12428


More information about the core-libs-dev mailing list