You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: libs/simdvec/src/main21/java/org/elasticsearch/simdvec/internal/vectorization/PanamaESVectorUtilSupport.java
+16-42Lines changed: 16 additions & 42 deletions
Original file line number
Diff line number
Diff line change
@@ -236,34 +236,20 @@ static int ipByteBit512(byte[] q, byte[] d) {
236
236
+ acc3.reduceLanes(VectorOperators.ADD);
237
237
}
238
238
239
-
sectionLength = INT_SPECIES_256.length() * 4;
239
+
sectionLength = INT_SPECIES_256.length();
240
240
if (q.length - i >= sectionLength) {
241
-
IntVectoracc0 = IntVector.zero(INT_SPECIES_256);
242
-
IntVectoracc1 = IntVector.zero(INT_SPECIES_256);
243
-
IntVectoracc2 = IntVector.zero(INT_SPECIES_256);
244
-
IntVectoracc3 = IntVector.zero(INT_SPECIES_256);
241
+
// don't unroll this, we want to catch as many as we can before going scalar
242
+
IntVectoracc = IntVector.zero(INT_SPECIES_256);
245
243
intlimit = limit(q.length, sectionLength);
246
244
for (; i < limit; i += sectionLength) {
247
-
varvals0 = ByteVector.fromArray(BYTE_SPECIES_FOR_INT_256, q, i).castShape(INT_SPECIES_256, 0);
248
-
varvals1 = ByteVector.fromArray(BYTE_SPECIES_FOR_INT_256, q, i + INT_SPECIES_256.length()).castShape(INT_SPECIES_256, 0);
249
-
varvals2 = ByteVector.fromArray(BYTE_SPECIES_FOR_INT_256, q, i + INT_SPECIES_256.length() * 2)
250
-
.castShape(INT_SPECIES_256, 0);
251
-
varvals3 = ByteVector.fromArray(BYTE_SPECIES_FOR_INT_256, q, i + INT_SPECIES_256.length() * 3)
252
-
.castShape(INT_SPECIES_256, 0);
245
+
varvals = ByteVector.fromArray(BYTE_SPECIES_FOR_INT_256, q, i).castShape(INT_SPECIES_256, 0);
253
246
254
-
longmaskBits = Integer.reverse((int) BitUtil.VH_BE_INT.get(d, i / 8));
0 commit comments