summaryrefslogtreecommitdiff
path: root/sys/kern
diff options
context:
space:
mode:
authorStefan Fritsch <sf@cvs.openbsd.org>2012-11-18 12:17:41 +0000
committerStefan Fritsch <sf@cvs.openbsd.org>2012-11-18 12:17:41 +0000
commit0e94671412c59a1bcf6f69279a1bea633ec682de (patch)
treea908d0a2164d4496baef91cb6130349dfd5223c3 /sys/kern
parent0a199aba1829fff8571512d74a89b4b13ff57082 (diff)
Small memcpy optimizations
On x86, the xchg operation between reg and mem has an implicit lock prefix, i.e. on MP, it is a relatively expensive atomic operation. This is not needed here. Instead of swapping arguments on the stack, load them in reverse order and jump further into bcopy (idea by kettenis@). ok kettenis@
Diffstat (limited to 'sys/kern')
0 files changed, 0 insertions, 0 deletions