You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Larger branches will not be made branchless by the compiler, and numeric booleans are usually used with subtle.ConstantTimeSelect. This is why the crypto/subtle and filippo.io/edwards25519 return 0 or 1 instead of false or true.
A lot of branch-less algorithms are developed for c where
a<b
is0
whenfalse
and1
whentrue
.It would be really helpful to be able to use those algorithms by being able to have
uint64(a<b)
and it beuint64(0)
oruint64(1)
depending ona
andb
.Note: this isn't an April fools proposal. (someone pointed out I should say this).
The text was updated successfully, but these errors were encountered: