Return dst as the result from memcpy(9) on amd64.

PR:	207422
MFC after:	1 week
This commit is contained in:
Konstantin Belousov 2016-02-24 11:58:15 +00:00
parent c0af8d16d8
commit abb8f08388

View File

@ -151,6 +151,7 @@ END(bcopy)
*/
ENTRY(memcpy)
PUSH_FRAME_POINTER
movq %rdi,%rax
movq %rdx,%rcx
shrq $3,%rcx /* copy by 64-bit words */
cld /* copy forwards */