summaryrefslogtreecommitdiffstats
path: root/libc/string/sh/sh4/memmove.c
Commit message (Collapse)AuthorAgeFilesLines
* sh4: Reorder code in memmove.cCarmelo Amoroso2009-10-101-32/+30
| | | | | | | Remove forward declaration for service routine. Reorder code and keep hidden_def right after the respective function. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* sh: add a new memmove optimised for SH4Giuseppe Cavallaro2009-09-271-0/+119
This patch adds the memmove fuction for SH4. By default, it used the generic implementation. This new code uses the memcpy for BWD copies and implements FWD copy when required (see comment within the code itself). The idea behind is to get advantage of using the optimised memcpy for SH4 and use the FPU for FWD copies (for big sizes) as well. LMBench bw_mem test showed a significant improvement on uClibc because bcopy invokes memmove, directly. Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>