RFR: 8222029: Optimize Math.floorMod

Andrew Haley aph at redhat.com
Fri Apr 5 15:41:58 UTC 2019


On 4/5/19 2:44 PM, Claes Redestad wrote:
> Testing: tier1-2, all Math tests run locally, -prof perfasm verification
> on the provided microbenchmark.

Looks good.

I've kicked the tyres on AArch64, and it looks like a useful optimization. The
gains when the divisor is constant (a common case) are modest but worthwhile.

-- 
Andrew Haley
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671


More information about the core-libs-dev mailing list