Top Inners Fields Constructors Methods
jdk.incubator.vector

pack-priv final Class ShortMaxVector

extends ShortVector
Class Inheritance
Annotations
@SuppressWarnings:cast
Imports
java.lang.foreign.MemorySegment, java.util.Arrays, .Objects, java.util.function.IntUnaryOperator, jdk.internal.vm.annotation.ForceInline, jdk.internal.vm.vector.VectorSupport

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv static final Class<Short>
pack-priv static final ShortMaxVector
pack-priv static final Class<ShortMaxVector>
pack-priv static final int
pack-priv static final VectorShape
pack-priv static final int
pack-priv static final ShortVector.ShortSpecies
pack-priv static final ShortMaxVector
Inherited from jdk.incubator.vector.ShortVector:
ARRAY_BASEARRAY_CHAR_BASEARRAY_CHAR_SHIFTARRAY_SHIFTELEMENT_LAYOUTFORBID_OPCODE_KINDSPECIES_128SPECIES_256SPECIES_512SPECIES_64SPECIES_MAXSPECIES_PREFERRED

Constructor Summary

AccessConstructor and Description
pack-priv
ShortMaxVector(short[] v)

pack-priv

Method Summary

Modifier and TypeMethod and Description
public final ShortMaxVector
addIndex(int
the number to multiply by each lane index N, typically 1
scale
)

Implements abstract jdk.incubator.vector.ShortVector.addIndex.

Adds the lanes of this vector to their corresponding lane numbers, scaled by a given constant.
pack-priv final ByteMaxVector
pack-priv final AbstractVector<?>
public final int
bitSize()

Implements abstract jdk.incubator.vector.Vector.bitSize.

Returns the total size, in bits, of this vector.
public ShortMaxVector
blend(Vector<Short>
the second input vector, containing replacement lane values
v
,
VectorMask<Short>
the mask controlling lane selection from the second input vector
m
)

Implements abstract jdk.incubator.vector.ShortVector.blend.

Replaces selected lanes of this vector with corresponding lanes from a second input vector under the control of a mask.
pack-priv final ShortMaxVector
pack-priv final ShortMaxVector
public final ShortMaxVector
broadcast(short
the value to broadcast
e
)

Implements abstract jdk.incubator.vector.ShortVector.broadcast.

Returns a vector of the same species as this one where all lane elements are set to the primitive value e.
public final ShortMaxVector
broadcast(long
the value to broadcast
e
)

Implements abstract jdk.incubator.vector.ShortVector.broadcast.

Returns a vector of the same species as this one where all lane elements are set to the primitive value e.
public final int
byteSize()

Implements abstract jdk.incubator.vector.Vector.byteSize.

Returns the total size, in bytes, of this vector.
public final ShortMaxVector.ShortMaxMask
compare(VectorOperators.Comparison
the operation used to compare lane values
op
,
Vector<Short>
a second input vector
v
)

Implements abstract jdk.incubator.vector.ShortVector.compare.

Tests this vector by comparing it with another input vector, according to the given comparison operation.
public final ShortMaxVector.ShortMaxMask
compare(VectorOperators.Comparison
the operation used to compare lane values
op
,
short
the input scalar
s
)

Implements abstract jdk.incubator.vector.ShortVector.compare.

Tests this vector by comparing it with an input scalar, according to the given comparison operation.
public final ShortMaxVector.ShortMaxMask
compare(VectorOperators.Comparison
the operation used to compare lane values
op
,
long
the input scalar
s
)

Implements abstract jdk.incubator.vector.ShortVector.compare.

Tests this vector by comparing it with an input scalar, according to the given comparison operation.
public final ShortMaxVector.ShortMaxMask
compare(VectorOperators.Comparison
the operation used to compare lane values
op
,
Vector<Short>
a second input vector
v
,
VectorMask<Short>
the mask controlling lane selection
m
)

Implements abstract jdk.incubator.vector.Vector.compare.

Tests this vector by comparing it with another input vector, according to the given comparison operation, in lanes selected by a mask.
public ShortMaxVector
compress(VectorMask<Short>
the mask controlling the compression
m
)

Implements abstract jdk.incubator.vector.ShortVector.compress.

Compresses the lane elements of this vector selecting lanes under the control of a specific mask.
public final <F> Vector<F>
convertShape(VectorOperators.Conversion<Short, F>
the desired scalar conversion to apply lane-wise
conv
,
VectorSpecies<F>
the desired output species
rsp
,
int
the part number of the result, or zero if neither expanding nor contracting
part
)

Implements abstract jdk.incubator.vector.AbstractVector.convertShape.

Converts this vector to a vector of the given species, shape and element type, converting lane values from the current ETYPE to a new lane type (called FTYPE here) according to the indicated conversion.
public final int
elementSize()

Implements abstract jdk.incubator.vector.Vector.elementSize.

Returns the size of each lane, in bits, of this vector.
public final Class<Short>
elementType()

Implements abstract jdk.incubator.vector.Vector.elementType.

Returns the primitive element type (ETYPE) of this vector.
public ShortMaxVector
expand(VectorMask<Short>
the mask controlling the compression
m
)

Implements abstract jdk.incubator.vector.ShortVector.expand.

Expands the lane elements of this vector under the control of a specific mask.
pack-priv final ShortVector
fromArray0(short[] a, int offset)

Implements abstract jdk.incubator.vector.ShortVector.fromArray0.

pack-priv final ShortVector
fromArray0(short[] a, int offset, VectorMask<Short> m, int offsetInRange)

Implements abstract jdk.incubator.vector.ShortVector.fromArray0.

pack-priv final ShortVector
fromCharArray0(char[] a, int offset)

Implements abstract jdk.incubator.vector.ShortVector.fromCharArray0.

pack-priv final ShortVector
fromCharArray0(char[] a, int offset, VectorMask<Short> m, int offsetInRange)

Implements abstract jdk.incubator.vector.ShortVector.fromCharArray0.

pack-priv final ShortVector
pack-priv final ShortVector
fromMemorySegment0(MemorySegment ms, long offset, VectorMask<Short> m, int offsetInRange)

Implements abstract jdk.incubator.vector.ShortVector.fromMemorySegment0.

pack-priv final void
intoArray0(short[] a, int offset)

Implements abstract jdk.incubator.vector.ShortVector.intoArray0.

pack-priv final void
intoArray0(short[] a, int offset, VectorMask<Short> m)

Implements abstract jdk.incubator.vector.ShortVector.intoArray0.

pack-priv final void
pack-priv final void
pack-priv ShortMaxVector.ShortMaxShuffle
pack-priv ShortMaxVector.ShortMaxShuffle
iotaShuffle(int start, int step, boolean wrap)

Implements abstract jdk.incubator.vector.AbstractVector.iotaShuffle.

public short
lane(int
the lane index
i
)

Implements abstract jdk.incubator.vector.ShortVector.lane.

Gets the lane element at lane index i
public short
laneHelper(int i)

public ShortMaxVector
lanewise(VectorOperators.Unary
the operation used to process lane values
op
)

Implements abstract jdk.incubator.vector.ShortVector.lanewise.

Operates on the lane values of this vector.
public ShortMaxVector
lanewise(VectorOperators.Unary
the operation used to process lane values
op
,
VectorMask<Short>
the mask controlling lane selection
m
)

Implements abstract jdk.incubator.vector.ShortVector.lanewise.

Operates on the lane values of this vector, with selection of lane elements controlled by a mask.
public ShortMaxVector
lanewise(VectorOperators.Binary
the operation used to combine lane values
op
,
Vector<Short>
the input vector
v
)

Implements abstract jdk.incubator.vector.ShortVector.lanewise.

Combines the corresponding lane values of this vector with those of a second input vector.
public ShortMaxVector
lanewise(VectorOperators.Binary
the operation used to combine lane values
op
,
Vector<Short>
the second input vector
v
,
VectorMask<Short>
the mask controlling lane selection
m
)

Implements abstract jdk.incubator.vector.ShortVector.lanewise.

Combines the corresponding lane values of this vector with those of a second input vector, with selection of lane elements controlled by a mask.
public final ShortMaxVector
lanewise(VectorOperators.Ternary
the operation used to combine lane values
op
,
Vector<Short>
the second input vector
v1
,
Vector<Short>
the third input vector
v2
)

Implements abstract jdk.incubator.vector.ShortVector.lanewise.

Combines the corresponding lane values of this vector with the lanes of a second and a third input vector.
public final ShortMaxVector
lanewise(VectorOperators.Ternary
the operation used to combine lane values
op
,
Vector<Short>
the second input vector
v1
,
Vector<Short>
the third input vector
v2
,
VectorMask<Short>
the mask controlling lane selection
m
)

Implements abstract jdk.incubator.vector.ShortVector.lanewise.

Combines the corresponding lane values of this vector with the lanes of a second and a third input vector, with selection of lane elements controlled by a mask.
pack-priv ShortMaxVector
pack-priv ShortMaxVector
public final int
length()

Implements abstract jdk.incubator.vector.Vector.length.

Returns the lane count, or vector length (VLENGTH).
pack-priv ShortMaxVector.ShortMaxMask
public ShortMaxVector
rearrange(VectorShuffle<Short>
the shuffle controlling lane index selection
s
)

Implements abstract jdk.incubator.vector.ShortVector.rearrange.

Rearranges the lane elements of this vector, selecting lanes under the control of a specific shuffle.
public ShortMaxVector
rearrange(VectorShuffle<Short>
the shuffle controlling lane index selection
shuffle
,
VectorMask<Short>
the mask controlling application of the shuffle
m
)

Implements abstract jdk.incubator.vector.ShortVector.rearrange.

Rearranges the lane elements of this vector, selecting lanes under the control of a specific shuffle and a mask.
public ShortMaxVector
rearrange(VectorShuffle<Short>
the shuffle controlling lane selection from both input vectors
s
,
Vector<Short>
the second input vector
v
)

Implements abstract jdk.incubator.vector.ShortVector.rearrange.

Rearranges the lane elements of two vectors, selecting lanes under the control of a specific shuffle, using both normal and exceptional indexes in the shuffle to steer data.
public final short
reduceLanes(VectorOperators.Associative
the operation used to combine lane values
op
)

Implements abstract jdk.incubator.vector.ShortVector.reduceLanes.

Returns a value accumulated from all the lanes of this vector.
public final short
reduceLanes(VectorOperators.Associative
the operation used to combine lane values
op
,
VectorMask<Short>
the mask controlling lane selection
m
)

Implements abstract jdk.incubator.vector.ShortVector.reduceLanes.

Returns a value accumulated from selected lanes of this vector, controlled by a mask.
public final long
reduceLanesToLong(VectorOperators.Associative
the operation used to combine lane values
op
)

Implements abstract jdk.incubator.vector.ShortVector.reduceLanesToLong.

Returns a value accumulated from all the lanes of this vector.
public final long
reduceLanesToLong(VectorOperators.Associative
the operation used to combine lane values
op
,
VectorMask<Short>
the mask controlling lane selection
m
)

Implements abstract jdk.incubator.vector.ShortVector.reduceLanesToLong.

Returns a value accumulated from selected lanes of this vector, controlled by a mask.
public final <F> Vector<F>
reinterpretShape(VectorSpecies<F>
the desired vector species
toSpecies
,
int
the part number of the result, or zero if neither expanding nor contracting
part
)

Implements abstract jdk.incubator.vector.Vector.reinterpretShape.

Transforms this vector to a vector of the given species of element type F, reinterpreting the bytes of this vector without performing any value conversions.
pack-priv final short
public ShortMaxVector
selectFrom(Vector<Short>
the vector supplying the result values
v
)

Implements abstract jdk.incubator.vector.ShortVector.selectFrom.

Using index values stored in the lanes of this vector, assemble values stored in second vector v.
public ShortMaxVector
selectFrom(Vector<Short>
the vector supplying the result values
v
,
VectorMask<Short>
the mask controlling selection from v
m
)

Implements abstract jdk.incubator.vector.ShortVector.selectFrom.

Using index values stored in the lanes of this vector, assemble values stored in second vector, under the control of a mask.
public final VectorShape
shape()

Implements abstract jdk.incubator.vector.Vector.shape.

Returns the shape of this vector.
pack-priv ShortMaxVector.ShortMaxShuffle
pack-priv ShortMaxVector.ShortMaxShuffle
pack-priv ShortMaxVector.ShortMaxShuffle
public ShortMaxVector
slice(int
the first input lane to transfer into the slice
origin
,
Vector<Short>
a second vector logically concatenated with the first, before the slice is taken (if omitted it defaults to zero)
v
)

Implements abstract jdk.incubator.vector.ShortVector.slice.

Slices a segment of adjacent lanes, starting at a given origin lane in the current vector, and continuing (as needed) into an immediately following vector.
public ShortMaxVector
slice(int
the first input lane to transfer into the slice
origin
)

Implements abstract jdk.incubator.vector.ShortVector.slice.

Slices a segment of adjacent lanes, starting at a given origin lane in the current vector.
public final ShortMaxVector.ShortMaxMask
test(VectorOperators.Test
the operation used to test lane values
op
)

Implements abstract jdk.incubator.vector.ShortVector.test.

Tests the lanes of this vector according to the given operation.
public final ShortMaxVector.ShortMaxMask
test(VectorOperators.Test
the operation used to test lane values
op
,
VectorMask<Short>
the mask controlling lane selection
m
)

Implements abstract jdk.incubator.vector.ShortVector.test.

Test selected lanes of this vector, according to the given operation.
pack-priv final ShortMaxVector
pack-priv final ShortMaxVector
public VectorShuffle<Short>
toShuffle()

Implements abstract jdk.incubator.vector.Vector.toShuffle.

Converts this vector into a shuffle, converting the lane values to int and regarding them as source indexes.
public ShortMaxVector
unslice(int
the first output lane to receive the slice
origin
,
Vector<Short>
the background vector that (as two copies) will receive the inserted slice
w
,
int
the part number of the result (either zero or one)
part
)

Implements abstract jdk.incubator.vector.ShortVector.unslice.

Reverses a slice(), inserting the current vector as a slice within another "background" input vector, which is regarded as one or the other input to a hypothetical subsequent slice() operation.
public ShortMaxVector
unslice(int
the first output lane to receive the slice
origin
,
Vector<Short>
the background vector that (as two copies) will receive the inserted slice, if they are set in m
w
,
int
the part number of the result (either zero or one)
part
,
VectorMask<Short>
the mask controlling lane selection from the current vector
m
)

Implements abstract jdk.incubator.vector.ShortVector.unslice.

Reverses a slice(), inserting (under the control of a mask) the current vector as a slice within another "background" input vector, which is regarded as one or the other input to a hypothetical subsequent slice() operation.
public ShortMaxVector
unslice(int
the first output lane to receive the slice
origin
)

Implements abstract jdk.incubator.vector.ShortVector.unslice.

Reverses a slice(), inserting the current vector as a slice within a "background" input of zero lane values.
pack-priv final ShortMaxVector
pack-priv final ShortMaxVector
pack-priv final short[]
pack-priv final ShortMaxVector
vectorFactory(short[] vec)

Implements abstract jdk.incubator.vector.ShortVector.vectorFactory.

Build a vector directly using my own constructor.
public final ShortVector.ShortSpecies
public ShortMaxVector
withLane(int
the lane index of the lane element to be replaced
i
,
short
the value to be placed
e
)

Implements abstract jdk.incubator.vector.ShortVector.withLane.

Replaces the lane element of this vector at lane index i with value e.
public ShortMaxVector
withLaneHelper(int i, short e)

Inherited from jdk.incubator.vector.ShortVector:
absaddaddaddaddaddIndexTemplateandandarrayAddressbitCountbitwiseBlendbitwiseBlendbitwiseBlendbitwiseBlendblendblendblendTemplatebOpTemplatebOpTemplatebroadcastbroadcastbroadcastTemplatebroadcastTemplatebTestbyteArrayAddresscharArrayAddresscomparecomparecompareTemplatecompareTemplatecompareTemplatecompareTemplatecompressHelpercompressTemplatedivdivdivdiveqeqequalsexpandHelperexpandTemplatefromArrayfromArrayfromArrayfromArrayfromArray0TemplatefromArray0TemplatefromBitsfromCharArrayfromCharArrayfromCharArrayfromCharArrayfromCharArray0TemplatefromCharArray0TemplatefromMemorySegmentfromMemorySegmentfromMemorySegment0TemplatefromMemorySegment0TemplatehashCodeintoArrayintoArrayintoArrayintoArrayintoArray0TemplateintoArray0TemplateintoCharArrayintoCharArrayintoCharArrayintoCharArrayintoCharArray0TemplateintoMemorySegmentintoMemorySegmentintoMemorySegment0intoMemorySegment0TemplatelanewiselanewiselanewiselanewiselanewiselanewiselanewiselanewiselanewiselanewiselanewiseShiftTemplatelanewiseShiftTemplatelanewiseTemplatelanewiseTemplatelanewiseTemplatelanewiseTemplatelanewiseTemplatelanewiseTemplateldLongOpldLongOpldOpldOpltltmaskFactorymaxmaxmaybeSwapmemorySegmentGetmemorySegmentSetminminmulmulmulmulnegnotnumberOfLeadingZerosnumberOfTrailingZerosopCodeopCodeopKindororrearrangeTemplaterearrangeTemplaterearrangeTemplatereduceLanesTemplatereduceLanesTemplatereinterpretAsBytesreverserOpTemplaterOpTemplaterotateLeftrotateRightselectFromTemplateselectFromTemplateslicesliceTemplatesliceTemplatespeciesstLongOpstLongOpstOpstOpsubsubsubsubtestTemplatetestTemplatetoArraytoBitstoDoubleArraytoIntArraytoLongArraytOpTemplatetOpTemplatetoShuffleTemplatetoStringunsliceTemplateunsliceTemplateunsliceTemplateuOpTemplateuOpTemplateviewAsFloatingLanesviewAsIntegralLanesvOpvOpzero