]> git.baikalelectronics.ru Git - kernel.git/commit
m68knommu: add optimize memmove() function
authorGreg Ungerer <gerg@uclinux.org>
Thu, 3 Feb 2011 11:58:39 +0000 (21:58 +1000)
committerGreg Ungerer <gerg@uclinux.org>
Tue, 15 Feb 2011 23:43:16 +0000 (09:43 +1000)
commita90e6317b717d1698c9c2ad5de1c47274125a8c9
treefac6b90f443fdb1654c58ae86b1921f3e2a33aa3
parent1394b510e9a5a69f9d3cf3d715af2197f28fa042
m68knommu: add optimize memmove() function

Add an m68k/coldfire optimized memmove() function for the m68knommu arch.
This is the same function as used by m68k. Simple speed tests show this
is faster once buffers are larger than 4 bytes, and significantly faster
on much larger buffers (4 times faster above about 100 bytes).

This also goes part of the way to fixing a regression caused by commit
c6a1dfd39b0f378be60f01d9f648bb433feef77e ("m68k/m68knommu: merge MMU and
non-MMU string.h"), which breaks non-coldfire non-mmu builds (which is
the 68x328 and 68360 families). They currently have no memmove() fucntion
defined, since there was none in the m68knommu/lib functions.

Signed-off-by: Greg Ungerer <gerg@uclinux.org>
arch/m68k/include/asm/string.h
arch/m68knommu/lib/Makefile
arch/m68knommu/lib/memmove.c [new file with mode: 0644]