Torbjörn Granlund tg at gmplib.org
Mon Oct 7 09:35:33 UTC 2019

"Marco Bodrato" <bodrato at mail.dm.unipi.it> writes:

  Not bad, is it?

Not at all bad!

  Must we use masks to obtain branchless code? Or should we let the compiler

My experience is that the compiler cannot be trusted in this area; it
may or may not use cmov and its reasons for doing it either way are

Therefore, using masking is the safest option.  One may then proceed to
asm code.

Please encrypt, key id 0xC8601622

More information about the gmp-devel mailing list