mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-20 02:17:53 +00:00
8377355: VectorAPI source generation broken after JDK-8371187
Reviewed-by: liach, jbhateja
This commit is contained in:
parent
996ca4b44b
commit
b8088941c8
@ -4105,7 +4105,6 @@ public abstract class ByteVector extends AbstractVector<Byte> {
|
||||
return this;
|
||||
}
|
||||
|
||||
/*package-private*/
|
||||
@Override
|
||||
@ForceInline
|
||||
final
|
||||
|
||||
@ -5393,6 +5393,22 @@ public abstract class $abstractvectortype$ extends AbstractVector<$Boxtype$> {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
@ForceInline
|
||||
final
|
||||
$abstractvectortype$ swapIfNeeded(AbstractSpecies<?> srcSpecies) {
|
||||
#if[byte]
|
||||
return this;
|
||||
#else[byte]
|
||||
int subLanesPerSrc = subLanesToSwap(srcSpecies);
|
||||
if (subLanesPerSrc < 0) {
|
||||
return this;
|
||||
}
|
||||
VectorShuffle<$Boxtype$> shuffle = normalizeSubLanesForSpecies(this.vspecies(), subLanesPerSrc);
|
||||
return ($abstractvectortype$) this.rearrange(shuffle);
|
||||
#end[byte]
|
||||
}
|
||||
|
||||
static final int ARRAY_SHIFT =
|
||||
31 - Integer.numberOfLeadingZeros(Unsafe.ARRAY_$TYPE$_INDEX_SCALE);
|
||||
static final long ARRAY_BASE =
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user