jbhateja commented on issue #13519: URL: https://github.com/apache/lucene/issues/13519#issuecomment-2212316942
> I need to know more about signed representation (Two's vs Ones' complement), but can't we map `0 - 255` to `-127 to 128` using shifts ? If we do so, for unsigned to signed value range conversions, you can just flip the sign bit, for[ reverse case add min_signed value to signed value to convert to unsigned value range](https://github.com/openjdk/jdk/blob/master/src/java.base/share/classes/java/lang/Integer.java#L1450) -- 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