Skip to content

Commit 84699e3

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent a13ad87 commit 84699e3

File tree

4 files changed

+3
-7
lines changed

4 files changed

+3
-7
lines changed

benchmarks/src/main/java/org/elasticsearch/benchmark/vector/scorer/VectorUtilsBenchmark.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
package org.elasticsearch.benchmark.vector.scorer;
1111

12-
import org.apache.lucene.util.quantization.OptimizedScalarQuantizer;
1312
import org.elasticsearch.common.logging.LogConfigurator;
1413
import org.elasticsearch.simdvec.ESVectorUtil;
1514
import org.openjdk.jmh.annotations.Benchmark;

libs/simdvec/src/main/java/org/elasticsearch/simdvec/ESVectorUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ public static void vectorAccumulateAdd(float[] a, float[] b) {
443443
IMPL.vectorAccumulateAdd(a, b);
444444
}
445445

446-
public static void vectorScalerDivide(float [] a, float b) {
446+
public static void vectorScalerDivide(float[] a, float b) {
447447
IMPL.vectorScalerDivide(a, b);
448448
}
449449
}

libs/simdvec/src/main/java/org/elasticsearch/simdvec/internal/vectorization/DefaultESVectorUtilSupport.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
import org.apache.lucene.util.Constants;
1414
import org.apache.lucene.util.VectorUtil;
1515

16-
import java.util.Arrays;
17-
import java.util.concurrent.atomic.AtomicLong;
18-
1916
final class DefaultESVectorUtilSupport implements ESVectorUtilSupport {
2017

2118
private static float fma(float a, float b, float c) {
@@ -459,7 +456,7 @@ public int indexOf(byte[] bytes, int offset, int length, byte marker) {
459456
return ByteArrayUtils.indexOf(bytes, offset, length, marker);
460457
}
461458

462-
public void vectorScalerDivide(float [] a, float b) {
459+
public void vectorScalerDivide(float[] a, float b) {
463460
for (int d = 0; d < a.length; d++) {
464461
a[d] /= b;
465462
}

libs/simdvec/src/main/java/org/elasticsearch/simdvec/internal/vectorization/ESVectorUtilSupport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ void soarDistanceBulk(
7272

7373
int indexOf(byte[] bytes, int offset, int length, byte marker);
7474

75-
void vectorScalerDivide(float [] a, float b);
75+
void vectorScalerDivide(float[] a, float b);
7676

7777
void vectorAccumulateAdd(float[] a, float[] b);
7878
}

0 commit comments

Comments
 (0)