< prev index next >

src/jdk.incubator.vector/share/classes/jdk/incubator/vector/VectorMask.java

Print this page
rev 56969 : Javadoc corrections

@@ -161,11 +161,11 @@
      * @param bits the given {@code boolean} values
      * @return a mask where each lane is set or unset according to the given
      *         {@code boolean} value
      * @throws IllegalArgumentException
      *         if {@code bits.length != species.length()}
-     * @see #fromLong(VectorSpecies, boolean...)
+     * @see #fromLong(VectorSpecies, long)
      * @see #fromArray(VectorSpecies, boolean[], int)
      * @see Vector#maskFromValues(boolean...)
      */
     @ForceInline
     public static <E> VectorMask<E> fromValues(VectorSpecies<E> species, boolean... bits) {

@@ -176,20 +176,20 @@
 
     /**
      * Loads a mask from a {@code boolean} array starting at an offset.
      * <p>
      * For each mask lane, where {@code N} is the mask lane index,
-     * if the array element at index {@code ix + N} is {@code true} then the
+     * if the array element at index {@code offset + N} is {@code true} then the
      * mask lane at index {@code N} is set, otherwise it is unset.
      *
      * @param species vector species for the desired mask
      * @param bits the {@code boolean} array
      * @param offset the offset into the array
      * @return the mask loaded from the {@code boolean} array
      * @throws IndexOutOfBoundsException if {@code offset < 0}, or
      * {@code offset > bits.length - species.length()}
-     * @see #fromLong(VectorSpecies, boolean...)
+     * @see #fromLong(VectorSpecies, long)
      * @see #fromValues(VectorSpecies, boolean...)
      */
     @ForceInline
     @SuppressWarnings("unchecked")
     public static <E> VectorMask<E> fromArray(VectorSpecies<E> species, boolean[] bits, int offset) {

@@ -205,11 +205,11 @@
     }
 
     /**
      * Returns a mask where each lane is set or unset according to
      * the bits in the given bitmask, starting with the least
-     * significant bit, and continuing up through the sign bit.
+     * significant bit, and continuing up to the sign bit.
      * <p>
      * For each mask lane, where {@code N} is the mask lane index,
      * if the expression {@code (bits>>min(63,N))&1} is non-zero,
      * then the mask lane at index {@code N} is set, otherwise it is unset.
      * <p>

@@ -222,11 +222,10 @@
      * @param bits the given mask bits, as a 64-bit signed integer
      * @return a mask where each lane is set or unset according to
      *         the bits in the given integer value
      * @see #fromValues(VectorSpecies, boolean...)
      * @see #fromArray(VectorSpecies, boolean[], int)
-     * @see Vector#maskFromBits(long)
      */
     @ForceInline
     public static <E> VectorMask<E> fromLong(VectorSpecies<E> species, long bits) {
         AbstractSpecies<E> vspecies = (AbstractSpecies<E>) species;
         int laneCount = vspecies.laneCount();

@@ -278,11 +277,11 @@
      * to most significant bit.
      * For each mask lane where {@code N} is the mask lane index, if the
      * mask lane is set then the {@code N}th bit is set to one in the
      * resulting {@code long} value, otherwise the {@code N}th bit is set
      * to zero.
-     * The mask must no more than 64 lanes.
+     * The mask must have no more than 64 lanes.
      *
      * @return the lane elements of this mask packed into a {@code long}
      *         value.
      * @throws IllegalArgumentException if there are more than 64 lanes
      *         in this mask
< prev index next >