mirror of
https://github.com/reactos/reactos.git
synced 2024-09-10 12:54:51 +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
|
@ -24,9 +24,8 @@ _memcpy:
|
||||||
* Make the destination dword aligned
|
* Make the destination dword aligned
|
||||||
*/
|
*/
|
||||||
mov %edi,%ecx
|
mov %edi,%ecx
|
||||||
|
neg %ecx
|
||||||
and $3,%ecx
|
and $3,%ecx
|
||||||
sub $5,%ecx
|
|
||||||
not %ecx
|
|
||||||
sub %ecx,%edx
|
sub %ecx,%edx
|
||||||
rep movsb
|
rep movsb
|
||||||
mov %edx,%ecx
|
mov %edx,%ecx
|
||||||
|
|
Loading…
Reference in a new issue