On Thu, Feb 8, 2024 at 3:38 PM Thomas Munro <thomas.mu...@gmail.com> wrote: > Perhaps you could wrap it in a branch-free sign() function so you get > a narrow answer? > > https://stackoverflow.com/questions/14579920/fast-sign-of-integer-in-c
Ah, strike that, it is much like the suggested (a > b) - (a < b) but with extra steps...