@@ -847,4 +847,36 @@ public static void calculate_partial_sums_best_euclidean_f32_512(MemorySegment c
847847 throw new AssertionError ("should not reach here" , ex$ );
848848 }
849849 }
850+
851+ private static class calculate_partial_sums_f32_512 {
852+ public static final FunctionDescriptor DESC = FunctionDescriptor .ofVoid (
853+ NativeSimdOps .C_POINTER ,
854+ NativeSimdOps .C_INT ,
855+ NativeSimdOps .C_INT ,
856+ NativeSimdOps .C_INT ,
857+ NativeSimdOps .C_POINTER ,
858+ NativeSimdOps .C_INT ,
859+ NativeSimdOps .C_INT ,
860+ NativeSimdOps .C_POINTER
861+ );
862+ public static final MemorySegment ADDR = NativeSimdOps .findOrThrow ("calculate_partial_sums_f32_512" );
863+ public static final MethodHandle HANDLE = Linker .nativeLinker ().downcallHandle (ADDR , DESC , Linker .Option .critical (true ));
864+ }
865+
866+ /**
867+ * {@snippet lang=c :
868+ * void calculate_partial_sums_f32_512(const float *codebook, int codebookIndex, int size, int clusterCount, const float *query, int queryOffset, int similarityFunction, float *partialSums)
869+ * }
870+ */
871+ public static void calculate_partial_sums_f32_512 (MemorySegment codebook , int codebookIndex , int size , int clusterCount , MemorySegment query , int queryOffset , int similarityFunction , MemorySegment partialSums ) {
872+ var mh$ = calculate_partial_sums_f32_512 .HANDLE ;
873+ try {
874+ if (TRACE_DOWNCALLS ) {
875+ traceDowncall ("calculate_partial_sums_f32_512" , codebook , codebookIndex , size , clusterCount , query , queryOffset , similarityFunction , partialSums );
876+ }
877+ mh$ .invokeExact (codebook , codebookIndex , size , clusterCount , query , queryOffset , similarityFunction , partialSums );
878+ } catch (Throwable ex$ ) {
879+ throw new AssertionError ("should not reach here" , ex$ );
880+ }
881+ }
850882}
0 commit comments