RFR: 8257815: Replace global log2 functions with efficient implementations [v11]
Claes Redestad
redestad at openjdk.java.net
Wed Dec 16 16:54:57 UTC 2020
On Wed, 16 Dec 2020 16:15:39 GMT, Martin Doerr <mdoerr at openjdk.org> wrote:
> Hi Claes,
> I noticed that you're using `log2i_exact` in ppc.ad. That's wrong, we're hitting assertions because it's not used for exact powers of 2. Please change to `log2i`. I'll test with that change.
To have the same semantics as before I guess `log2i_graceful` is the better fit. I picked `log2i_exact` since the variable names suggested they were powers of two.
-------------
PR: https://git.openjdk.java.net/jdk/pull/1663
More information about the hotspot-dev
mailing list