Fast switch statement

bearophile bearophileHUGS at lycos.com
Fri Apr 5 06:27:30 PDT 2013


Steven Kucera:

> and core.bitop.bsf compiled to a function call instead of an 
> ASM instruction.

It used to be an intrinsics. I don't know if in the meantime
things have changed for LDC2.


> Can you force a function to be inline, and/or make 
> core.bitop.bsf an instruction with ldc?

In LDC there are two different ways to inline asm, see the LDC
docs.

Bye,
bearophile


More information about the Digitalmars-d-learn mailing list