diff options
| author | faux123 <reioux@gmail.com> | 2012-11-22 07:25:02 -0800 |
|---|---|---|
| committer | Moyster <oysterized@gmail.com> | 2016-08-26 20:06:34 +0200 |
| commit | 7291759b62a75a4cab4140f653c572e117763060 (patch) | |
| tree | 54479e28de13e505ac2103f8024ca63b82c943d5 /include/linux/netdev_features.h | |
| parent | 29324d67b15d1c1056bc58c41585ba85b65e5e3c (diff) | |
lib/memcopy: use glibc version
the kernel's memcpy and memmove is very inefficient. But the glibc version is
quite fast, in some cases it is 10 times faster than the kernel version. So I
introduce some memory copy macros and functions of the glibc to improve the
kernel version's performance.
The strategy of the memory functions is:
1. Copy bytes until the destination pointer is aligned.
2. Copy words in unrolled loops. If the source and destination are not
aligned in the same way, use word memory operations, but shift and merge
two read words before writing.
3. Copy the few remaining bytes.
Signed-off-by: Miao Xie <miaox*******>
Signed-off-by: faux123 <reioux@gmail.com>
Signed-off-by: Stefan Guendhoer <stefan@guendhoer.com>
Diffstat (limited to 'include/linux/netdev_features.h')
0 files changed, 0 insertions, 0 deletions
