[ros-dev] [ros-diffs] [greatlrd] 23826: Wrote RtlUshotByteSwap RtlUlongByteSwap and RtlUlonglongByteSwap to asm code. but we need a C api for header to linking it right. Put the asm version to i386

Alex Ionescu ionucu at videotron.ca
Fri Sep 1 14:34:46 CEST 2006


mrnobo1024 wrote:
> --- Alex Ionescu <ionucu at videotron.ca> wrote:
> 
> 
> I meant that instead of mov edx,[esp+8] mov eax,[esp+4] it could be mov
> edx,[esp+4] mov eax,[esp+8]. I don't think that would affect instruction pairing.
> 

That wouldn't swap them... you would just be inverting the bytes. Each
ULONG must be swapped here.

-- 
Best regards,
Alex Ionescu
Project Lead, TinyKRNL
Kernel-Mode Software Design Engineer, ReactOS


More information about the Ros-dev mailing list