]> sourceware.org Git - newlib-cygwin.git/commit
memcmp.S: optimize for medium to large sizes
authorSiddhesh Poyarekar <siddhesh@sourceware.org>
Fri, 29 Jun 2018 12:38:21 +0000 (18:08 +0530)
committerCorinna Vinschen <corinna@vinschen.de>
Fri, 13 Jul 2018 11:27:54 +0000 (13:27 +0200)
commit2d9f35c2ccc2699941e0b768d21673f1d6f2abd0
tree60069dc30617d987ac4f0008909a5a7ff0af2209
parentf44eee8f1bb88c235cea564106b9eab86e5ea29b
memcmp.S: optimize for medium to large sizes

This improved memcmp provides a fast path for compares up to 16 bytes
and then compares 16 bytes at a time, thus optimizing loads from both
sources.  The glibc memcmp microbenchmark retains performance (with an
error of ~1ns) for smaller compare sizes and reduces up to 31% of
execution time for compares up to 4K on the APM Mustang.  On Qualcomm
Falkor this improves to almost 48%, i.e. it is almost 2x improvement
for sizes of 2K and above.
newlib/libc/machine/aarch64/memcmp.S
This page took 0.029348 seconds and 5 git commands to generate.