Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2021-12

Random branchless coding video!

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

J. Gareth Moreton

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.

https://www.youtube.com/watch?v=bVJ-mWWL7cE

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. https://www.avast.com/antivirus

Reply by email