Best way to add templated "intrinsic" functions?

Ola Fosheim Grøstad ola.fosheim.grostad at gmail.com
Mon Jan 4 21:54:47 UTC 2021


On Monday, 4 January 2021 at 21:52:03 UTC, Guillaume Piolat wrote:
> If it's worth inlining and you are using LDC, you can have high 
> confidence it will be inlined. There is a bit too much of 
> "forced inlined" in this world, often without any measurements.

I am inlining "a < b < c" as "(a<b) && (b<c)" so it is totally 
worth it. :-)

I got it to work, but haven't checked the asm yet...



More information about the digitalmars-d-ldc mailing list