Speed up memmove on x86
authorAndrew Gallatin <gallatin@google.com>
Fri, 6 Jun 2014 21:56:11 +0000 (14:56 -0700)
committerAndrew Gallatin <gallatin@google.com>
Mon, 9 Jun 2014 14:37:12 +0000 (07:37 -0700)
commit0ef7ece19832a47fedc2c8cd92420c985c1ad40b
tree388172b10f93e28d91f874c5a90c776eeff61b2a
parent0f73c4607fdc73efbf7e63ffd08e26f28bb2786e
Speed up memmove on x86

Take an asm bcopy (which has the same overlapping semantics
as memmove) from FreeBSD.  This speeds up netperf by anywhere
from 25-40% on x86_64

Note:  I also brought in a copy for i686, but i686 does not
compile due to other prolems in the tree, so I was unable to test it.
kern/arch/x86/Kbuild
kern/arch/x86/support32.S [new file with mode: 0644]
kern/arch/x86/support64.S [new file with mode: 0644]
kern/src/string.c