News for hackers. Stuff that matters.
Re:Fast midpoint between two integers without overflow by noasaservice on Wednesday December 07, 2022 @04:12PM (#33900324)
you can also do

min(a,b) + (max(a,b) - min(a,b))>>1

There are no comments on this comment yet.