Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2436,7 +2436,7 @@ ByteVector rearrangeTemplate(Class<S> shuffletype,
this, ws, m,
(v1, s_, m_) -> v1.uOp((i, a) -> {
int ei = s_.laneSource(i);
return ei < 0 || !m_.laneIsSet(i) ? 0 : v1.lane(ei);
return !m_.laneIsSet(i) ? 0 : v1.lane(ei);
}));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2278,7 +2278,7 @@ DoubleVector rearrangeTemplate(Class<S> shuffletype,
this, ws, m,
(v1, s_, m_) -> v1.uOp((i, a) -> {
int ei = s_.laneSource(i);
return ei < 0 || !m_.laneIsSet(i) ? 0 : v1.lane(ei);
return !m_.laneIsSet(i) ? 0 : v1.lane(ei);
}));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2290,7 +2290,7 @@ FloatVector rearrangeTemplate(Class<S> shuffletype,
this, ws, m,
(v1, s_, m_) -> v1.uOp((i, a) -> {
int ei = s_.laneSource(i);
return ei < 0 || !m_.laneIsSet(i) ? 0 : v1.lane(ei);
return !m_.laneIsSet(i) ? 0 : v1.lane(ei);
}));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2421,7 +2421,7 @@ IntVector rearrangeTemplate(Class<S> shuffletype,
this, ws, m,
(v1, s_, m_) -> v1.uOp((i, a) -> {
int ei = s_.laneSource(i);
return ei < 0 || !m_.laneIsSet(i) ? 0 : v1.lane(ei);
return !m_.laneIsSet(i) ? 0 : v1.lane(ei);
}));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2287,7 +2287,7 @@ LongVector rearrangeTemplate(Class<S> shuffletype,
this, ws, m,
(v1, s_, m_) -> v1.uOp((i, a) -> {
int ei = s_.laneSource(i);
return ei < 0 || !m_.laneIsSet(i) ? 0 : v1.lane(ei);
return !m_.laneIsSet(i) ? 0 : v1.lane(ei);
}));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2437,7 +2437,7 @@ ShortVector rearrangeTemplate(Class<S> shuffletype,
this, ws, m,
(v1, s_, m_) -> v1.uOp((i, a) -> {
int ei = s_.laneSource(i);
return ei < 0 || !m_.laneIsSet(i) ? 0 : v1.lane(ei);
return !m_.laneIsSet(i) ? 0 : v1.lane(ei);
}));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2622,7 +2622,6 @@ public abstract VectorMask<E> compare(VectorOperators.Comparison op,
* @return the rearrangement of the lane elements of this vector
* @see #rearrange(VectorShuffle,VectorMask)
* @see #rearrange(VectorShuffle,Vector)
* @see VectorShuffle#laneIsValid()
*/
public abstract Vector<E> rearrange(VectorShuffle<E> s);

Expand All @@ -2641,9 +2640,7 @@ public abstract VectorMask<E> compare(VectorOperators.Comparison op,
*
* <p> This method returns the value of this pseudocode:
* <pre>{@code
* Vector<E> r = this.rearrange(s.wrapIndexes());
* VectorMask<E> valid = s.laneIsValid();
* if (m.andNot(valid).anyTrue()) throw ...;
* Vector<E> r = this.rearrange(s);
* return broadcast(0).blend(r, m);
* }</pre>
*
Expand All @@ -2652,7 +2649,6 @@ public abstract VectorMask<E> compare(VectorOperators.Comparison op,
* @return the rearrangement of the lane elements of this vector
* @see #rearrange(VectorShuffle)
* @see #rearrange(VectorShuffle,Vector)
* @see VectorShuffle#laneIsValid()
*/
public abstract Vector<E> rearrange(VectorShuffle<E> s, VectorMask<E> m);

Expand Down Expand Up @@ -2752,7 +2748,7 @@ public abstract VectorMask<E> compare(VectorOperators.Comparison op,
* depends on the index values in {@code this}.
*
* The result is the same as the expression
* {@code v.rearrange(this.toShuffle().wrapIndexes())}.
* {@code v.rearrange(this.toShuffle())}.
*
* @param v the vector supplying the result values
* @return the rearrangement of the lane elements of {@code v}
Expand All @@ -2776,7 +2772,7 @@ public abstract VectorMask<E> compare(VectorOperators.Comparison op,
* this vector and the mask.
*
* The result is the same as the expression
* {@code v.rearrange(this.toShuffle().wrapIndexes(), m)}.
* {@code v.rearrange(this.toShuffle(), m)}.
*
* @param v the vector supplying the result values
* @param m the mask controlling selection from {@code v}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2813,7 +2813,7 @@ public abstract class $abstractvectortype$ extends AbstractVector<$Boxtype$> {
this, ws, m,
(v1, s_, m_) -> v1.uOp((i, a) -> {
int ei = s_.laneSource(i);
return ei < 0 || !m_.laneIsSet(i) ? 0 : v1.lane(ei);
return !m_.laneIsSet(i) ? 0 : v1.lane(ei);
}));
}

Expand Down