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

Joe Darcy darcy at openjdk.java.net
Thu Jul 8 17:05:53 UTC 2021


On Thu, 8 Jul 2021 15:53:18 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 updated the pull request incrementally with one additional commit since the last revision:
> 
>   6506405: Set MAG_BIT_MASKs to bit-wise complements of SIGN_BIT_MASKs

Marked as reviewed by darcy (Reviewer).

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

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


More information about the core-libs-dev mailing list