RFR: 8257815: Replace global log2 functions with efficient implementations
Thomas Stuefe
stuefe at openjdk.java.net
Tue Dec 8 17:19:13 UTC 2020
On Tue, 8 Dec 2020 16:12:40 GMT, Stefan Karlsson <stefank at openjdk.org> wrote:
> I'm not sure about the ilog2 name.
>
> 1. If it's commonly used elsewhere then we're begging for a name clashes.
> 2. I don't like the discoverability of that name. If I write code where I need log2 then I'll look for functions named log2* not *log2. I know that's already a problem with exact_log2, but maybe that function also could be renamed?
>
> These are not hard objects, but maybe others agree?
I agree (including renaming exact_log2).
-------------
PR: https://git.openjdk.java.net/jdk/pull/1663
More information about the hotspot-dev
mailing list