inline asm in inlined function / ECX clobbered / stack frame / naked

kinke noone at nowhere.com
Mon May 6 19:55:44 UTC 2019


Adding `-mcpu=haswell` to the LDC command-line, the generated asm 
is:

	addl	$-1, %edi
	lzcntl	%edi, %eax
	xorb	$31, %al
	movl	$2, %ecx
	shlxl	%eax, %ecx, %eax

[Add `-mcpu=native` to tune code-gen for *your* CPU.]


More information about the digitalmars-d-ldc mailing list