3 ms·
I think this might be better for c/c++ though admittedly a bit more cryptic: (x>>1) + (y>>1) + (0x01 & x & y)
by yarskegg 4y ago
I think this might be better for c/c++ though admittedly a bit more cryptic:
(x>>1) + (y>>1) + (0x01 & x & y)
3 ms·