Re:Fast midpoint between two integers without overflow
by bonzini on Wednesday December 07, 2022 @10:21AM
(#33895338)
It's still wrong for signed integers if a/2 rounds towards zero. You need a>>1 and b>>1.
[ Parent
| on HN ]
There are no comments on this comment yet.