RFR: 6506405: Math.abs(float) is slow

Brian Burkhalter brian.burkhalter at oracle.com
Thu Jul 8 01:20:31 UTC 2021


On Jul 7, 2021, at 5:50 PM, Joe Darcy <joe.darcy at oracle.com<mailto:joe.darcy at oracle.com>> wrote:

There is no specific constant in `{Float,Double}Consts` to mask all but the sign bit, but I had thought it might be good to add one there


The sign bit mask can be bit-wise complemented though :-)

I had it that way initially and removed it.


More information about the core-libs-dev mailing list