@@ -32,7 +32,6 @@ public final class JdkVectorLibrary implements VectorLibrary {
3232 static final Logger logger = LogManager .getLogger (JdkVectorLibrary .class );
3333
3434 static final MethodHandle dot7u$mh ;
35- static final MethodHandle dot7uBulk$mh ;
3635 static final MethodHandle sqr7u$mh ;
3736 static final MethodHandle cosf32$mh ;
3837 static final MethodHandle dotf32$mh ;
@@ -54,11 +53,6 @@ public final class JdkVectorLibrary implements VectorLibrary {
5453 FunctionDescriptor .of (JAVA_INT , ADDRESS , ADDRESS , JAVA_INT ),
5554 LinkerHelperUtil .critical ()
5655 );
57- dot7uBulk$mh = downcallHandle (
58- "dot7u_bulk_2" ,
59- FunctionDescriptor .ofVoid (ADDRESS , ADDRESS , JAVA_INT , JAVA_INT , ADDRESS ),
60- LinkerHelperUtil .critical ()
61- );
6256 sqr7u$mh = downcallHandle (
6357 "sqr7u_2" ,
6458 FunctionDescriptor .of (JAVA_INT , ADDRESS , ADDRESS , JAVA_INT ),
@@ -85,11 +79,6 @@ public final class JdkVectorLibrary implements VectorLibrary {
8579 FunctionDescriptor .of (JAVA_INT , ADDRESS , ADDRESS , JAVA_INT ),
8680 LinkerHelperUtil .critical ()
8781 );
88- dot7uBulk$mh = downcallHandle (
89- "dot7u_bulk" ,
90- FunctionDescriptor .ofVoid (ADDRESS , ADDRESS , JAVA_INT , JAVA_INT , ADDRESS ),
91- LinkerHelperUtil .critical ()
92- );
9382 sqr7u$mh = downcallHandle (
9483 "sqr7u" ,
9584 FunctionDescriptor .of (JAVA_INT , ADDRESS , ADDRESS , JAVA_INT ),
@@ -119,7 +108,6 @@ public final class JdkVectorLibrary implements VectorLibrary {
119108 enable them in your OS/Hypervisor/VM/container""" );
120109 }
121110 dot7u$mh = null ;
122- dot7uBulk$mh = null ;
123111 sqr7u$mh = null ;
124112 cosf32$mh = null ;
125113 dotf32$mh = null ;
@@ -154,10 +142,6 @@ static int dotProduct7u(MemorySegment a, MemorySegment b, int length) {
154142 return dot7u (a , b , length );
155143 }
156144
157- static void dotProduct7uBulk (MemorySegment a , MemorySegment b , int length , int count , MemorySegment result ) {
158- dot7uBulk (a , b , length , count , result );
159- }
160-
161145 /**
162146 * Computes the square distance of given unsigned int7 byte vectors.
163147 *
@@ -226,14 +210,6 @@ private static int dot7u(MemorySegment a, MemorySegment b, int length) {
226210 }
227211 }
228212
229- private static void dot7uBulk (MemorySegment a , MemorySegment b , int length , int count , MemorySegment result ) {
230- try {
231- JdkVectorLibrary .dot7uBulk$mh .invokeExact (a , b , length , count , result );
232- } catch (Throwable t ) {
233- throw new AssertionError (t );
234- }
235- }
236-
237213 private static int sqr7u (MemorySegment a , MemorySegment b , int length ) {
238214 try {
239215 return (int ) JdkVectorLibrary .sqr7u$mh .invokeExact (a , b , length );
@@ -267,7 +243,6 @@ private static float sqrf32(MemorySegment a, MemorySegment b, int length) {
267243 }
268244
269245 static final MethodHandle DOT_HANDLE_7U ;
270- static final MethodHandle DOT_HANDLE_7U_BULK ;
271246 static final MethodHandle SQR_HANDLE_7U ;
272247 static final MethodHandle COS_HANDLE_FLOAT32 ;
273248 static final MethodHandle DOT_HANDLE_FLOAT32 ;
@@ -278,11 +253,6 @@ private static float sqrf32(MemorySegment a, MemorySegment b, int length) {
278253 var lookup = MethodHandles .lookup ();
279254 var mt = MethodType .methodType (int .class , MemorySegment .class , MemorySegment .class , int .class );
280255 DOT_HANDLE_7U = lookup .findStatic (JdkVectorSimilarityFunctions .class , "dotProduct7u" , mt );
281- DOT_HANDLE_7U_BULK = lookup .findStatic (
282- JdkVectorSimilarityFunctions .class ,
283- "dotProduct7uBulk" ,
284- MethodType .methodType (void .class , MemorySegment .class , MemorySegment .class , int .class , int .class , MemorySegment .class )
285- );
286256 SQR_HANDLE_7U = lookup .findStatic (JdkVectorSimilarityFunctions .class , "squareDistance7u" , mt );
287257
288258 mt = MethodType .methodType (float .class , MemorySegment .class , MemorySegment .class , int .class );
@@ -299,11 +269,6 @@ public MethodHandle dotProductHandle7u() {
299269 return DOT_HANDLE_7U ;
300270 }
301271
302- @ Override
303- public MethodHandle dotProductHandle7uBulk () {
304- return DOT_HANDLE_7U_BULK ;
305- }
306-
307272 @ Override
308273 public MethodHandle squareDistanceHandle7u () {
309274 return SQR_HANDLE_7U ;
0 commit comments