mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8283894: Intrinsify compress and expand bits on x86
Reviewed-by: psandoz, sviswanathan, jrose, kvn
This commit is contained in:
parent
ebc012ece2
commit
f347ff9986
20 changed files with 1115 additions and 30 deletions
|
@ -1839,7 +1839,7 @@ public final class Integer extends Number
|
|||
* @see #expand
|
||||
* @since 19
|
||||
*/
|
||||
// @IntrinsicCandidate
|
||||
@IntrinsicCandidate
|
||||
public static int compress(int i, int mask) {
|
||||
// See Hacker's Delight (2nd ed) section 7.4 Compress, or Generalized Extract
|
||||
|
||||
|
@ -1927,7 +1927,7 @@ public final class Integer extends Number
|
|||
* @see #compress
|
||||
* @since 19
|
||||
*/
|
||||
// @IntrinsicCandidate
|
||||
@IntrinsicCandidate
|
||||
public static int expand(int i, int mask) {
|
||||
// Save original mask
|
||||
int originalMask = mask;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue