diff options
author | Stefan Fritsch <sf@cvs.openbsd.org> | 2012-11-18 12:17:41 +0000 |
---|---|---|
committer | Stefan Fritsch <sf@cvs.openbsd.org> | 2012-11-18 12:17:41 +0000 |
commit | 0e94671412c59a1bcf6f69279a1bea633ec682de (patch) | |
tree | a908d0a2164d4496baef91cb6130349dfd5223c3 /sys/kern | |
parent | 0a199aba1829fff8571512d74a89b4b13ff57082 (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