Skip to content

Commit ee0006a

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent c26ff2c commit ee0006a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -810,8 +810,7 @@ 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).
814-
add(0.5f).convert(VectorOperators.F2I, 0).reinterpretAsInts(); // round
813+
IntVector assignment = xi.sub(lowVec).mul(invStepVec).add(0.5f).convert(VectorOperators.F2I, 0).reinterpretAsInts(); // round
815814
sumQuery += assignment.reduceLanes(ADD);
816815
assignment.intoArray(destination, i);
817816
}

0 commit comments

Comments
 (0)