RFR: 6506405: Math.abs(float) is slow [v9]

Joe Darcy darcy at openjdk.java.net
Wed Jul 14 15:28:12 UTC 2021


On Mon, 12 Jul 2021 17:59:32 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:

>> Please consider this change to make the `float` and `double` versions of `java.lang.Math.abs()` branch-free.
>
> Brian Burkhalter has refreshed the contents of this pull request, and previous commits have been removed. The incremental views will show differences compared to the previous content of the PR.

Marked as reviewed by darcy (Reviewer).

Updated tests look fine. Next time I'm in the neighborhood of the jdk/test/java/lang/Math/Tests.java code, I'll look to add some overloads to make it more lambda/method reference friendly.

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

PR: https://git.openjdk.java.net/jdk/pull/4711


More information about the core-libs-dev mailing list