Inline ASM in D
    Sascha Katzner 
    sorry.no at spam.invalid
       
    Sun Apr 27 07:05:22 PDT 2008
    
    
  
Walter wrote:
> Inline assembler can only appear within functions.
Is there any chance that you re-(think/work) this in the future?
I've just written:
uint reverseUint(void* source) {
	asm {
		naked;
		mov	EAX, [EAX];
		bswap	EAX;
		ret;
	}
}
...and it strike me, that it would be *really* nice if the compiler 
would inline functions like that, either manually or automatically.
LLAP,
Sascha
    
    
More information about the Digitalmars-d
mailing list