uschindler commented on PR #12694:
URL: https://github.com/apache/lucene/pull/12694#issuecomment-1770911584

   > also i'd recommend writing some tests, at least enough to know if the code 
is viable. It is not clear to me that the vector methods are correct, if they 
do 16-bit multiplication on two unsigned 8-bit integers and store result in a 
signed short, it overflows.
   
   There is a test missing in TestVectorUtilSupport that compares the results 
of vectorized and standard impl. Also some basic tests using extreme vectors 
should be added due to overflows.
   
   As Robert says, I am quite sure that the current code overflows if 
vectorized if you have large values (like 0xFF). So please add a test that 
compares results (like we have for all other methods).


-- 
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