[fpc-devel] Random branchless coding video!

J. Gareth Moreton gareth at moreton-family.com
Mon Dec 20 20:30:07 CET 2021

Hi everyone,

So I stumbled across this Australian programmer who talks about 
branchless programming and assembly-level optimisations, and it's 
interesting because he points out the pitfalls of trying to out-optimise 
the compiler.  Just a random thing I thought the compiler developers 
might be interested in.


Gareth aka. Kit

P.S. The "smaller" function he illustrates, which is essentially "min", 
I think FPC already optimises it with a CMOV instruction!

This email has been checked for viruses by Avast antivirus software.

More information about the fpc-devel mailing list