ChrisHegarty commented on PR #12311:
URL: https://github.com/apache/lucene/pull/12311#issuecomment-1560683064

   Trivially, the JDK Vector source (at least in the comments) seems to 
describe what we expect, but this is not the behaviour that we observe.
   
   VectorShape.java
   ```
       static int getMaxVectorBitSize(Class<?> etype) {
           // VectorSupport.getMaxLaneCount may return -1 if C2 is not enabled,
           // or a value smaller than the S_64_BIT.vectorBitSize / 
elementSizeInBits if MaxVectorSize < 16
           // If so default to S_64_BIT
           int maxLaneCount = VectorSupport.getMaxLaneCount(etype);
           int elementSizeInBits = LaneType.of(etype).elementSize;
           return Math.max(maxLaneCount * elementSizeInBits, 
S_64_BIT.vectorBitSize);
       }
   ```


-- 
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: issues-unsubscr...@lucene.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to