8283894: Intrinsify compress and expand bits on x86

Reviewed-by: psandoz, sviswanathan, jrose, kvn
This commit is contained in:
Jatin Bhateja 2022-06-06 00:37:54 +00:00
parent ebc012ece2
commit f347ff9986
20 changed files with 1115 additions and 30 deletions

View file

@ -1978,7 +1978,7 @@ public final class Long extends Number
* @see #expand
* @since 19
*/
// @IntrinsicCandidate
@IntrinsicCandidate
public static long compress(long i, long mask) {
// See Hacker's Delight (2nd ed) section 7.4 Compress, or Generalized Extract
@ -2066,7 +2066,7 @@ public final class Long extends Number
* @see #compress
* @since 19
*/
// @IntrinsicCandidate
@IntrinsicCandidate
public static long expand(long i, long mask) {
// Save original mask
long originalMask = mask;