[PATCH] Replace MIPS specific memcpy.S/memset.S with version from glibc/newlib.

Steve Ellcey sellcey at imgtec.com
Tue Dec 22 17:50:04 UTC 2015


On Mon, 2015-12-21 at 16:43 -0800, Khem Raj wrote:
> Hi Steve
> 
> On Mon, Dec 21, 2015 at 1:22 PM, Steve Ellcey <sellcey at imgtec.com> wrote:
> > These MIPS specific versions of memcpy.S and memset.S are faster than
> > the current ones and match what is in newlib and glibc.  They also have
> > support for the mips32r6 and mips64r6 architectures.
> >
> 
> what is the size impact ? Would be nice to have that report as well.

Using mips32r2 as a baseline, memcpy.os went from 1312 bytes to 1984
bytes and memset.os went from 1136 bytes to 1296 bytes.  This is due to
increased use of loop unrolling and prefetching which is what gives them
better performance.

While the percent growth in memcpy may seem large, I think the overall
size is still reasonable given the importance of this particular library
function.

Steve Ellcey
sellcey at imgtec.com



More information about the uClibc mailing list