JDK-8283892 : Compress and expand bits
  • Type: Enhancement
  • Component: core-libs
  • Sub-Component: java.lang
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2022-03-29
  • Updated: 2022-06-14
  • Resolved: 2022-04-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 19
19 b19Fixed
Related Reports
Blocks :  
Blocks :  
CSR :  
Relates :  
Relates :  
Description
Add compress and expand bits methods to Integer and Long.

For details see Hacker's Delight section 7-4 Compress, or Generalized Extract.

The implementations will utilize the parallel suffix method. The methods will be made intrinsic in dependent issues.
Comments
Changeset: fbb09160 Author: Paul Sandoz <psandoz@openjdk.org> Date: 2022-04-14 20:27:12 +0000 URL: https://git.openjdk.java.net/jdk/commit/fbb09160906b4d9b0a29c8e99465f12ad16d4c88
14-04-2022

A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk/pull/8115 Date: 2022-04-05 22:05:19 +0000
05-04-2022