On 12/5/20 8:43 AM, Jeffrey Walton wrote:
I also have some GCC inline assembly one-liners that I use on
occasion. The good thing about inline assembly is, ASM does not suffer
C's undefined behavior.

Although asms are occasionally used in Gnulib, they are a maintenance hassle and aren't needed for good performance in doing integer overflow checking. The Gnulib intprops module doesn't use asms and does not rely on undefined behavior, and I'd be surprised if it's significantly outperformed by the usual asms for this particular task.

Reply via email to