RFR: 8283892: Compress and expand bits [v4]
Paul Sandoz
psandoz at openjdk.java.net
Thu Apr 7 22:54:41 UTC 2022
On Thu, 7 Apr 2022 20:02:51 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> Examples added in latest commit.
>
> I see you've added a comment on each example too, I think this really helpers readers to see how they can be used.
>
> The class description of both Integer and Long have an implementation note (they pre-date @implNote) referencing Hacker's Delight. We could potentially expand the list of methods mentioned but it's not strictly necessary are they are just examples.
I also saw that on the class doc and considered the new methods fit neatly under the category of "bit twiddling" methods.
-------------
PR: https://git.openjdk.java.net/jdk/pull/8115
More information about the core-libs-dev
mailing list