RFR: 6506405: Math.abs(float) is slow
Rémi Forax
forax at openjdk.java.net
Wed Jul 7 22:46:50 UTC 2021
On Wed, 7 Jul 2021 22:22:45 GMT, Joe Darcy <darcy at openjdk.org> wrote:
>
> > Your patch change the semantics, actually
> > `Math.abs(Integer.MIN_VALUE) == Integer.MIN_VALUE`
> > with your patch
> > `Math.abs(Integer.MIN_VALUE) == Integer.MAX_VALUE`
>
> Does it? The overriding of int arguments shouldn't be affected.
You are right, it does not change abs(int) so it should be Ok.
>
> -Joe
-------------
PR: https://git.openjdk.java.net/jdk/pull/4711
More information about the core-libs-dev
mailing list