glibc/sysdeps/mach
Noah Goldstein 44829b3ddb String: Add support for __memcmpeq() ABI on all targets
No bug.

This commit adds support for __memcmpeq() as a new ABI for all
targets. In this commit __memcmpeq() is implemented only as an alias
to the corresponding targets memcmp() implementation. __memcmpeq() is
added as a new symbol starting with GLIBC_2.35 and defined in string.h
with comments explaining its behavior. Basic tests that it is callable
and works where added in string/tester.c

As discussed in the proposal "Add new ABI '__memcmpeq()' to libc"
__memcmpeq() is essentially a reserved namespace for bcmp(). The means
is shares the same specifications as memcmp() except the return value
for non-equal byte sequences is any non-zero value. This is less
strict than memcmp()'s return value specification and can be better
optimized when a boolean return is all that is needed.

__memcmpeq() is meant to only be called by compilers if they can prove
that the return value of a memcmp() call is only used for its boolean
value.

All tests in string/tester.c passed. As well build succeeds on
x86_64-linux-gnu target.
2021-10-26 16:51:29 -05:00
..
htl Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
hurd String: Add support for __memcmpeq() ABI on all targets 2021-10-26 16:51:29 -05:00
i386 Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
include hurd: break relocation loop between libc.so and lib{mach,hurd}user.so 2020-11-14 00:52:52 +01:00
sys Installed-header hygiene (BZ#20366): obsolete BSD u_* types. 2016-09-23 08:43:56 -04:00
_strerror.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
adjtime.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
clock_gettime.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
clock_nanosleep.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
configure configure: Replaced obsolete AC_TRY_COMPILE 2021-06-04 10:16:00 -03:00
configure.ac configure: Replaced obsolete AC_TRY_COMPILE 2021-06-04 10:16:00 -03:00
getloadavg.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
getpagesize.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
getsysstats.c misc: Add __get_nprocs_sched 2021-09-27 09:13:06 -03:00
libc-lock.h mach lll_lock/unlock: Explicitly request private locking 2021-09-15 01:36:08 +02:00
libmachuser.abilist hurd: add base abilist files 2018-01-28 17:26:35 +01:00
Makefile Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
mprotect.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
msync.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
munmap.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
pagecopy.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
readonly-area.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
sched_yield.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
sleep.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
strerror_l.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
Subdirs * Makefile (subdir-target-args): New variable. 2006-02-28 07:11:04 +00:00
sysdep.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
thread_state.h Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
usleep.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00
xpg-strerror.c Update copyright dates with scripts/update-copyrights 2021-01-02 12:17:34 -08:00