Skip to content

Commit c26ff2c

Browse files
committed
iter
1 parent d571325 commit c26ff2c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libs/simdvec/src/main21/java/org/elasticsearch/simdvec/internal/vectorization/PanamaESVectorUtilSupport.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,8 @@ public int quantizeVectorWithIntervals(float[] vector, int[] destination, float
810810
for (; i < limit; i += FLOAT_SPECIES.length()) {
811811
FloatVector v = FloatVector.fromArray(FLOAT_SPECIES, vector, i);
812812
FloatVector xi = v.max(lowVec).min(upperVec); // clamp
813-
IntVector assignment = xi.sub(lowVec).mul(invStepVec).add(0.5f).convert(VectorOperators.F2I, 0).reinterpretAsInts(); // round
813+
IntVector assignment = xi.sub(lowVec).mul(invStepVec).
814+
add(0.5f).convert(VectorOperators.F2I, 0).reinterpretAsInts(); // round
814815
sumQuery += assignment.reduceLanes(ADD);
815816
assignment.intoArray(destination, i);
816817
}

0 commit comments

Comments
 (0)