On Thu, May 7, 2015 at 3:07 PM, Martin Buchholz <marti...@google.com> wrote:

>
>>> if ((fromIndex < 0) | (toIndex > size) | (fromIndex > toIndex))
>>> slowpath();
>>>
>>>
Yeah, the refined proposal would be

if ((fromIndex | (size - toIndex) | (toIndex - fromIndex)) < 0) slowpath();

considering that here performance is more important than the small loss of
readability.

Reply via email to