Skip to content

Commit

Permalink
8255022: Documentation missing for Vector API zero methods
Browse files Browse the repository at this point in the history
Reviewed-by: vlivanov, darcy
  • Loading branch information
Paul Sandoz committed Oct 21, 2020
1 parent 9ade94b commit 60d3fa2
Show file tree
Hide file tree
Showing 7 changed files with 42 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,12 @@ static byte fromBits(long bits) {
// comment <!--workaround--> for this.

/**
* {@inheritDoc} <!--workaround-->
* Returns a vector of the given species
* where all lane elements are set to
* zero, the default primitive value.
*
* @param species species of the desired zero vector
* @return a zero vector
*/
@ForceInline
public static ByteVector zero(VectorSpecies<Byte> species) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,12 @@ static double fromBits(long bits) {
// comment <!--workaround--> for this.

/**
* {@inheritDoc} <!--workaround-->
* Returns a vector of the given species
* where all lane elements are set to
* zero, the default primitive value.
*
* @param species species of the desired zero vector
* @return a zero vector
*/
@ForceInline
public static DoubleVector zero(VectorSpecies<Double> species) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,12 @@ static float fromBits(long bits) {
// comment <!--workaround--> for this.

/**
* {@inheritDoc} <!--workaround-->
* Returns a vector of the given species
* where all lane elements are set to
* zero, the default primitive value.
*
* @param species species of the desired zero vector
* @return a zero vector
*/
@ForceInline
public static FloatVector zero(VectorSpecies<Float> species) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,12 @@ static int fromBits(long bits) {
// comment <!--workaround--> for this.

/**
* {@inheritDoc} <!--workaround-->
* Returns a vector of the given species
* where all lane elements are set to
* zero, the default primitive value.
*
* @param species species of the desired zero vector
* @return a zero vector
*/
@ForceInline
public static IntVector zero(VectorSpecies<Integer> species) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,12 @@ static long fromBits(long bits) {
// comment <!--workaround--> for this.

/**
* {@inheritDoc} <!--workaround-->
* Returns a vector of the given species
* where all lane elements are set to
* zero, the default primitive value.
*
* @param species species of the desired zero vector
* @return a zero vector
*/
@ForceInline
public static LongVector zero(VectorSpecies<Long> species) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,12 @@ static short fromBits(long bits) {
// comment <!--workaround--> for this.

/**
* {@inheritDoc} <!--workaround-->
* Returns a vector of the given species
* where all lane elements are set to
* zero, the default primitive value.
*
* @param species species of the desired zero vector
* @return a zero vector
*/
@ForceInline
public static ShortVector zero(VectorSpecies<Short> species) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,12 @@ public abstract class $abstractvectortype$ extends AbstractVector<$Boxtype$> {
// comment <!--workaround--> for this.

/**
* {@inheritDoc} <!--workaround-->
* Returns a vector of the given species
* where all lane elements are set to
* zero, the default primitive value.
*
* @param species species of the desired zero vector
* @return a zero vector
*/
@ForceInline
public static $abstractvectortype$ zero(VectorSpecies<$Boxtype$> species) {
Expand Down

1 comment on commit 60d3fa2

@bridgekeeper
Copy link

@bridgekeeper bridgekeeper bot commented on 60d3fa2 Oct 21, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.