Go to file
Lucas A. M. Magalhaes a55e2da270 powerpc: Optimized memcmp for power10
This patch was based on the __memcmp_power8 and the recent
__strlen_power10.

Improvements from __memcmp_power8:

1. Don't need alignment code.

   On POWER10 lxvp and lxvl do not generate alignment interrupts, so
they are safe for use on caching-inhibited memory.  Notice that the
comparison on the main loop will wait for both VSR to be ready.
Therefore aligning one of the input address does not improve
performance.  In order to align both registers a vperm is necessary
which add too much overhead.

2. Uses new POWER10 instructions

   This code uses lxvp to decrease contention on load by loading 32 bytes
per instruction.
   The vextractbm is used to have a smaller tail code for calculating the
return value.

3. Performance improvement

   This version has around 35% better performance on average. I saw no
performance regressions for any length or alignment.

Thanks Matheus for helping me out with some details.

Co-authored-by: Matheus Castanho <msc@linux.ibm.com>
Reviewed-by: Raphael M Zinsly <rzinsly@linux.ibm.com>
2021-05-31 18:00:20 -03:00
argp
assert
benchtests benchtests: Fixed bench-memcpy-random: buf1: mprotect failed 2021-05-26 12:01:06 +01:00
bits
catgets
ChangeLog.old
conform
crypt
csu
ctype
debug
dirent
dlfcn elf: Partially initialize ld.so after static dlopen (bug 20802) 2021-05-17 10:06:57 +02:00
elf elf: Use custom NODELETE DSO for tst-dlopenfail, tst-dlopenfail-2 2021-05-21 22:35:00 +02:00
gmon
gnulib
grp
gshadow
hesiod
htl htl: Add __libpthread_freeres 2021-05-18 17:46:12 +00:00
hurd
iconv charmap_conversion: Free conversion table on exit 2021-05-18 09:25:40 +05:30
iconvdata localedata: Use U+00AF MACRON in more EBCDIC charsets [BZ #27882] 2021-05-18 07:21:45 +02:00
include Add cast_to_pointer to cast an integer to void * pointer 2021-05-22 05:09:15 -07:00
inet
intl
io
libio Enable support for GCC 11 -Wmismatched-dealloc. 2021-05-16 15:21:18 -06:00
locale show_archive_content: Fix trivial memory leak 2021-05-18 09:07:06 +05:30
localedata localedata: Use U+00AF MACRON in more EBCDIC charsets [BZ #27882] 2021-05-18 07:21:45 +02:00
login
mach
malloc tst-mallinfo2.c: Use correct multiple for total variable 2021-05-25 16:47:01 -04:00
manual aarch64: Added optimized memcpy and memmove for A64FX 2021-05-27 09:47:53 +01:00
math
mathvec
misc Enable support for GCC 11 -Wmismatched-dealloc. 2021-05-16 15:21:18 -06:00
nis
nptl nptl: Add pthread_attr_setaffinity_np failure test 2021-05-27 13:12:16 -03:00
nptl_db nptl: Move pthread_create, thrd_create into libc 2021-05-21 22:35:00 +02:00
nscd
nss
po
posix Fix stringop-overflow warning in bug-regex19.c. 2021-05-18 10:07:30 +02:00
pwd
resolv
resource
rt
scripts
setjmp
shadow
signal
socket
soft-fp
stdio-common
stdlib Enable support for GCC 11 -Wmismatched-dealloc. 2021-05-16 15:21:18 -06:00
string x86: Expand bench-memcmp.c and test-memcmp.c 2021-05-18 22:57:39 -04:00
sunrpc
support support: Do not build xpthread_attr_setaffinity_np for hurd 2021-05-28 16:00:19 -03:00
sysdeps powerpc: Optimized memcmp for power10 2021-05-31 18:00:20 -03:00
sysvipc
termios
time Do not declare asctime_r and ctime_r for C2X 2021-05-18 19:47:49 +00:00
timezone
wcsmbs Enable support for GCC 11 -Wmismatched-dealloc. 2021-05-16 15:21:18 -06:00
wctype
.gitattributes
.gitignore
abi-tags
aclocal.m4
config.h.in config: Added HAVE_AARCH64_SVE_ASM for aarch64 2021-05-26 12:01:06 +01:00
config.make.in
configure Remove --enable-stackguard-randomization (BZ #27872) 2021-05-19 10:22:19 -03:00
configure.ac Remove --enable-stackguard-randomization (BZ #27872) 2021-05-19 10:22:19 -03:00
COPYING
COPYING.LIB
extra-lib.mk
gen-locales.mk
INSTALL aarch64: Added Vector Length Set test helper script 2021-05-26 12:01:06 +01:00
libc-abis
libof-iterator.mk
LICENSES
MAINTAINERS
Makeconfig
Makefile testrun.sh: Improve --help message 2021-05-25 10:14:19 +05:30
Makefile.help
Makefile.in
Makerules
NEWS Add C2X timespec_getres 2021-05-17 20:55:21 +00:00
o-iterator.mk
README
Rules
shlib-versions
test-skeleton.c
version.h

This directory contains the sources of the GNU C Library.
See the file "version.h" for what release version you have.

The GNU C Library is the standard system C library for all GNU systems,
and is an important part of what makes up a GNU system.  It provides the
system API for all programs written in C and C-compatible languages such
as C++ and Objective C; the runtime facilities of other programming
languages use the C library to access the underlying operating system.

In GNU/Linux systems, the C library works with the Linux kernel to
implement the operating system behavior seen by user applications.
In GNU/Hurd systems, it works with a microkernel and Hurd servers.

The GNU C Library implements much of the POSIX.1 functionality in the
GNU/Hurd system, using configurations i[4567]86-*-gnu.

When working with Linux kernels, this version of the GNU C Library
requires Linux kernel version 3.2 or later.

Also note that the shared version of the libgcc_s library must be
installed for the pthread library to work correctly.

The GNU C Library supports these configurations for using Linux kernels:

	aarch64*-*-linux-gnu
	alpha*-*-linux-gnu
	arc*-*-linux-gnu
	arm-*-linux-gnueabi
	csky-*-linux-gnuabiv2
	hppa-*-linux-gnu
	i[4567]86-*-linux-gnu
	x86_64-*-linux-gnu	Can build either x86_64 or x32
	ia64-*-linux-gnu
	m68k-*-linux-gnu
	microblaze*-*-linux-gnu
	mips-*-linux-gnu
	mips64-*-linux-gnu
	powerpc-*-linux-gnu	Hardware or software floating point, BE only.
	powerpc64*-*-linux-gnu	Big-endian and little-endian.
	s390-*-linux-gnu
	s390x-*-linux-gnu
	riscv32-*-linux-gnu
	riscv64-*-linux-gnu
	sh[34]-*-linux-gnu
	sparc*-*-linux-gnu
	sparc64*-*-linux-gnu

If you are interested in doing a port, please contact the glibc
maintainers; see https://www.gnu.org/software/libc/ for more
information.

See the file INSTALL to find out how to configure, build, and install
the GNU C Library.  You might also consider reading the WWW pages for
the C library at https://www.gnu.org/software/libc/.

The GNU C Library is (almost) completely documented by the Texinfo manual
found in the `manual/' subdirectory.  The manual is still being updated
and contains some known errors and omissions; we regret that we do not
have the resources to work on the manual as much as we would like.  For
corrections to the manual, please file a bug in the `manual' component,
following the bug-reporting instructions below.  Please be sure to check
the manual in the current development sources to see if your problem has
already been corrected.

Please see https://www.gnu.org/software/libc/bugs.html for bug reporting
information.  We are now using the Bugzilla system to track all bug reports.
This web page gives detailed information on how to report bugs properly.

The GNU C Library is free software.  See the file COPYING.LIB for copying
conditions, and LICENSES for notices about a few contributions that require
these additional notices to be distributed.  License copyright years may be
listed using range notation, e.g., 1996-2015, indicating that every year in
the range, inclusive, is a copyrightable year that would otherwise be listed
individually.