News for hackers. Stuff that matters.
Re:Nearly All Binary Searches and Mergesorts Are Broken (2006) by yarskegg on Sunday November 06, 2022 @09:40PM (#33500454)
I think this might be better for c/c++ though admittedly a bit more cryptic:

(x>>1) + (y>>1) + (0x01 & x & y)

There are no comments on this comment yet.