mccullocht opened a new pull request, #15148: URL: https://github.com/apache/lucene/pull/15148
Add distance functions that treat `byte[]` as unsigned and use them in `ScalarQuantizer` code paths. `ScalarQuantizer` assumes that all math will be unsigned but this can't be true when all 8 bits of a `byte` are used. In all cases where this is used values are widened to `short` or `int` before any operations occur so we can perform unsigned widening instead. This will be useful for supporting 8 bit OSQ in #15064 -- 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]
