RFR: 8257815: Replace global log2 functions with efficient implementations
Kim Barrett
kbarrett at openjdk.java.net
Tue Dec 8 01:18:12 UTC 2020
On Mon, 7 Dec 2020 12:00:48 GMT, Claes Redestad <redestad at openjdk.org> wrote:
> Naming is hard, but I think the following scheme is reasonable:
>
> * log2i: any integral type. 0-hostile
Not yet a review, but the "usual" name is "ilog2". Do a web search for that and you'll find lots of relevant hits. I like the short name having the non-zero precondition. Whether the longer version that tests for zero carry's it's weight is a question.
-------------
PR: https://git.openjdk.java.net/jdk/pull/1663
More information about the hotspot-dev
mailing list