shubhamvishu commented on code in PR #16799:
URL: https://github.com/apache/lucene/pull/16799#discussion_r4669947072


##########
lucene/core/src/java25/org/apache/lucene/internal/vectorization/NativeVectorUtilSupport.java:
##########
@@ -391,6 +399,35 @@ public static int int4DotProductBothPacked(MemorySegment 
a, MemorySegment b) {
         : PanamaVectorUtilSupport.int4DotProductBothPacked(a, b);
   }
 
+  /** Returns true if the native library implements {@link 
#int4DotProductSinglePackedBulk}. */
+  public static boolean hasInt4DotProductSinglePackedBulk() {
+    return int4DotProductSinglePackedBulk$MH != null;
+  }

Review Comment:
   We already do this check and then fallback to the delegate for other 
implementations without having an explicit `hasXYZ` functions. Maybe stick to 
the same pattern here?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to