> Add support to compress bits and expand bits of `int` and `long` values, see
> Hacker's Delight (2nd edition), section 7.4.
>
> Compressing or expanding bits of an `int` or `long` value can be composed to
> enable general permutations, and the "sheep and goats" operation (SAG) see
> Hacker's
On Fri, 8 Apr 2022 19:13:35 GMT, Paul Sandoz wrote:
>> Add support to compress bits and expand bits of `int` and `long` values, see
>> Hacker's Delight (2nd edition), section 7.4.
>>
>> Compressing or expanding bits of an `int` or `long` value can be composed to
>> enable general
On Fri, 8 Apr 2022 19:13:35 GMT, Paul Sandoz wrote:
>> Add support to compress bits and expand bits of `int` and `long` values, see
>> Hacker's Delight (2nd edition), section 7.4.
>>
>> Compressing or expanding bits of an `int` or `long` value can be composed to
>> enable general
> Add support to compress bits and expand bits of `int` and `long` values, see
> Hacker's Delight (2nd edition), section 7.4.
>
> Compressing or expanding bits of an `int` or `long` value can be composed to
> enable general permutations, and the "sheep and goats" operation (SAG) see
> Hacker's
> Add support to compress bits and expand bits of `int` and `long` values, see
> Hacker's Delight (2nd edition), section 7.4.
>
> Compressing or expanding bits of an `int` or `long` value can be composed to
> enable general permutations, and the "sheep and goats" operation (SAG) see
> Hacker's
On Thu, 7 Apr 2022 18:29:22 GMT, Paul Sandoz wrote:
>> Add support to compress bits and expand bits of `int` and `long` values, see
>> Hacker's Delight (2nd edition), section 7.4.
>>
>> Compressing or expanding bits of an `int` or `long` value can be composed to
>> enable general
On Thu, 7 Apr 2022 20:02:51 GMT, Alan Bateman 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
>
On Thu, 7 Apr 2022 18:23:50 GMT, Paul Sandoz wrote:
>> src/java.base/share/classes/java/lang/Integer.java line 1781:
>>
>>> 1779: * All the upper remaining bits of the compressed value are set
>>> 1780: * to zero.
>>> 1781: *
>>
>> Following Alan's comment, I suggest the
On Wed, 6 Apr 2022 18:22:45 GMT, John R Rose wrote:
>> Paul Sandoz has updated the pull request incrementally with two additional
>> commits since the last revision:
>>
>> - Fix typo.
>> - Provide examples.
>
> src/java.base/share/classes/java/lang/Integer.java line 1781:
>
>> 1779: *
> Add support to compress bits and expand bits of `int` and `long` values, see
> Hacker's Delight (2nd edition), section 7.4.
>
> Compressing or expanding bits of an `int` or `long` value can be composed to
> enable general permutations, and the "sheep and goats" operation (SAG) see
> Hacker's
> Add support to compress bits and expand bits of `int` and `long` values, see
> Hacker's Delight (2nd edition), section 7.4.
>
> Compressing or expanding bits of an `int` or `long` value can be composed to
> enable general permutations, and the "sheep and goats" operation (SAG) see
> Hacker's
On Thu, 7 Apr 2022 14:01:53 GMT, Claes Redestad wrote:
>> Paul Sandoz has updated the pull request incrementally with one additional
>> commit since the last revision:
>>
>> Doc and test updates.
>
> I experimented with this and drafted a few microbenchmarks along and a
> micro-optimization
On Wed, 6 Apr 2022 17:39:48 GMT, John R Rose wrote:
>> Paul Sandoz has updated the pull request incrementally with one additional
>> commit since the last revision:
>>
>> Doc and test updates.
>
> test/jdk/java/lang/AbstractCompressExpandTest.java line 145:
>
>> 143:
>> 144: int i
On Wed, 6 Apr 2022 21:57:44 GMT, Paul Sandoz wrote:
>> Add support to compress bits and expand bits of `int` and `long` values, see
>> Hacker's Delight (2nd edition), section 7.4.
>>
>> Compressing or expanding bits of an `int` or `long` value can be composed to
>> enable general
On Wed, 6 Apr 2022 17:43:34 GMT, John R Rose wrote:
>> Paul Sandoz has updated the pull request incrementally with one additional
>> commit since the last revision:
>>
>> Doc and test updates.
>
> test/jdk/java/lang/AbstractCompressExpandTest.java line 104:
>
>> 102: abstract long
> Add support to compress bits and expand bits of `int` and `long` values, see
> Hacker's Delight (2nd edition), section 7.4.
>
> Compressing or expanding bits of an `int` or `long` value can be composed to
> enable general permutations, and the "sheep and goats" operation (SAG) see
> Hacker's
On Tue, 5 Apr 2022 22:05:19 GMT, Paul Sandoz wrote:
> Add support to compress bits and expand bits of `int` and `long` values, see
> Hacker's Delight (2nd edition), section 7.4.
>
> Compressing or expanding bits of an `int` or `long` value can be composed to
> enable general permutations, and
On Wed, 6 Apr 2022 14:58:37 GMT, Alan Bateman wrote:
>> Add support to compress bits and expand bits of `int` and `long` values, see
>> Hacker's Delight (2nd edition), section 7.4.
>>
>> Compressing or expanding bits of an `int` or `long` value can be composed to
>> enable general
On Tue, 5 Apr 2022 22:05:19 GMT, Paul Sandoz wrote:
> Add support to compress bits and expand bits of `int` and `long` values, see
> Hacker's Delight (2nd edition), section 7.4.
>
> Compressing or expanding bits of an `int` or `long` value can be composed to
> enable general permutations, and
Add support to compress bits and expand bits of `int` and `long` values, see
Hacker's Delight (2nd edition), section 7.4.
Compressing or expanding bits of an `int` or `long` value can be composed to
enable general permutations, and the "sheep and goats" operation (SAG) see
Hacker's Delight
20 matches
Mail list logo