mirror of
https://github.com/reactos/reactos.git
synced 2024-07-14 00:25:05 +00:00
Improve memcpy. It was working correctly, but it wasted a cycle. ;-)
svn path=/trunk/; revision=36585
This commit is contained in:
parent
36a547b4a7
commit
76bf74c7f7
|
@ -23,13 +23,12 @@ _memcpy:
|
|||
/*
|
||||
* Make the destination dword aligned
|
||||
*/
|
||||
mov %edi,%ecx
|
||||
and $3,%ecx
|
||||
sub $5,%ecx
|
||||
not %ecx
|
||||
sub %ecx,%edx
|
||||
rep movsb
|
||||
mov %edx,%ecx
|
||||
mov %edi,%ecx
|
||||
neg %ecx
|
||||
and $3,%ecx
|
||||
sub %ecx,%edx
|
||||
rep movsb
|
||||
mov %edx,%ecx
|
||||
.L2:
|
||||
shr $2,%ecx
|
||||
rep movsl
|
||||
|
|
Loading…
Reference in a new issue