Skip to content

Commit 0001435

Browse files
author
Paul Sandoz
committedOct 19, 2020
8255020: Minor updates to docs jdk.incubator.vector
Reviewed-by: erikj, darcy
1 parent 14e1e17 commit 0001435

File tree

4 files changed

+24
-9
lines changed

4 files changed

+24
-9
lines changed
 

‎make/CompileJavaModules.gmk

+4
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,10 @@ jdk.jfr_DISABLED_WARNINGS += exports
546546
jdk.jfr_COPY := .xsd .xml .dtd
547547
jdk.jfr_JAVAC_FLAGS := -XDstringConcat=inline
548548

549+
################################################################################
550+
551+
jdk.incubator.vector_DOCLINT += -Xdoclint:all/protected
552+
549553
################################################################################
550554
# If this is an imported module that has prebuilt classes, only compile
551555
# module-info.java.

‎src/jdk.incubator.vector/share/classes/jdk/incubator/vector/Vector.java

+16-5
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
* such as {@code a + b} for the
103103
* {@link VectorOperators#ADD ADD} operator token.
104104
* General lane-wise operation-token accepting methods, such as for a
105-
* {@link Vector#lanewise(VectorOperators.Unary) unary lane-wise}
105+
* {@linkplain Vector#lanewise(VectorOperators.Unary) unary lane-wise}
106106
* operation, are provided on {@code Vector} and come in the same variants as
107107
* a full-service named operation.
108108
*
@@ -124,7 +124,8 @@
124124
* of {@code ETYPE}. For example, in the type {@code Vector<Integer>}, the {@code E}
125125
* parameter is {@code Integer} and the {@code ETYPE} is {@code int}. In such a
126126
* vector, each lane carries a primitive {@code int} value. This pattern continues
127-
* for the other primitive types as well.
127+
* for the other primitive types as well. (See also sections {@jls 5.1.7} and
128+
* {@jls 5.1.8} of the <cite>The Java Language Specification</cite>.)
128129
*
129130
* <p><a id="VLENGTH"></a> The {@linkplain #length() length} of a vector
130131
* is the lane count, the number of lanes it contains.
@@ -143,8 +144,8 @@
143144
* {@linkplain #shape() <em>vector shape</em>}, also called its
144145
* {@code VSHAPE}. Each possible {@code VSHAPE} is represented by
145146
* a member of the {@link VectorShape} enumeration, and represents
146-
* an implementation format shared in common by all vectors of a
147-
* of that shape. Thus, the {@linkplain #bitSize() size in bits} of
147+
* an implementation format shared in common by all vectors of
148+
* that shape. Thus, the {@linkplain #bitSize() size in bits} of
148149
* of a vector is determined by appealing to its vector shape.
149150
*
150151
* <p> Some Java platforms give special support to only one shape,
@@ -200,7 +201,7 @@
200201
* of floating point element types).
201202
* There are six abstract sub-classes of Vector corresponding to the supported set
202203
* of element types, {@link ByteVector}, {@link ShortVector},
203-
* {@link IntVector} {@link LongVector}, {@link FloatVector}, and
204+
* {@link IntVector}, {@link LongVector}, {@link FloatVector}, and
204205
* {@link DoubleVector}. Along with type-specific operations these classes
205206
* support creation of vector values (instances of Vector).
206207
* They expose static constants corresponding to the supported species,
@@ -1181,6 +1182,8 @@ public abstract class Vector<E> extends jdk.internal.vm.vector.VectorSupport.Vec
11811182
/**
11821183
* Returns the primitive <a href="Vector.html#ETYPE">element type</a>
11831184
* ({@code ETYPE}) of this vector.
1185+
*
1186+
* @implSpec
11841187
* This is the same value as {@code this.species().elementType()}.
11851188
*
11861189
* @return the primitive element type of this vector
@@ -1189,6 +1192,8 @@ public abstract class Vector<E> extends jdk.internal.vm.vector.VectorSupport.Vec
11891192

11901193
/**
11911194
* Returns the size of each lane, in bits, of this vector.
1195+
*
1196+
* @implSpec
11921197
* This is the same value as {@code this.species().elementSize()}.
11931198
*
11941199
* @return the lane size, in bits, of this vector
@@ -1197,6 +1202,8 @@ public abstract class Vector<E> extends jdk.internal.vm.vector.VectorSupport.Vec
11971202

11981203
/**
11991204
* Returns the shape of this vector.
1205+
*
1206+
* @implSpec
12001207
* This is the same value as {@code this.species().vectorShape()}.
12011208
*
12021209
* @return the shape of this vector
@@ -1213,6 +1220,8 @@ public abstract class Vector<E> extends jdk.internal.vm.vector.VectorSupport.Vec
12131220

12141221
/**
12151222
* Returns the total size, in bits, of this vector.
1223+
*
1224+
* @implSpec
12161225
* This is the same value as {@code this.shape().vectorBitSize()}.
12171226
*
12181227
* @return the total size, in bits, of this vector
@@ -1221,6 +1230,8 @@ public abstract class Vector<E> extends jdk.internal.vm.vector.VectorSupport.Vec
12211230

12221231
/**
12231232
* Returns the total size, in bytes, of this vector.
1233+
*
1234+
* @implSpec
12241235
* This is the same value as {@code this.bitSize()/Byte.SIZE}.
12251236
*
12261237
* @return the total size, in bytes, of this vector

‎src/jdk.incubator.vector/share/classes/jdk/incubator/vector/VectorOperators.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ public interface Operator {
227227
/**
228228
* Type for all
229229
* <a href="Vector.html#lane-wise">lane-wise</a>
230-
* unary operators,
230+
* unary (one-argument) operators,
231231
* usable in expressions like {@code w = v0.}{@link
232232
* Vector#lanewise(VectorOperators.Unary)
233233
* lanewise}{@code (NEG)}.
@@ -243,7 +243,7 @@ public interface Unary extends Operator {
243243
/**
244244
* Type for all
245245
* <a href="Vector.html#lane-wise">lane-wise</a>
246-
* binary operators,
246+
* binary (two-argument) operators,
247247
* usable in expressions like {@code w = v0.}{@link
248248
* Vector#lanewise(VectorOperators.Binary,Vector)
249249
* lanewise}{@code (ADD, v1)}.
@@ -259,7 +259,7 @@ public interface Binary extends Operator {
259259
/**
260260
* Type for all
261261
* <a href="Vector.html#lane-wise">lane-wise</a>
262-
* ternary operators,
262+
* ternary (three-argument) operators,
263263
* usable in expressions like {@code w = v0.}{@link
264264
* Vector#lanewise(VectorOperators.Ternary,Vector,Vector)
265265
* lanewise}{@code (FMA, v1, v2)}.

‎src/jdk.incubator.vector/share/classes/jdk/incubator/vector/package-info.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@
103103
* such as {@code a + b} for the
104104
* {@link VectorOperators#ADD ADD} operator token.
105105
* General lane-wise operation-token accepting methods, such as for a
106-
* {@link Vector#lanewise(VectorOperators.Unary) unary lane-wise}
106+
* {@linkplain Vector#lanewise(VectorOperators.Unary) unary lane-wise}
107107
* operation, are provided on {@code Vector} and come in the same variants as
108108
* a full-service named operation.
109109
*

0 commit comments

Comments
 (0)
Please sign in to comment.