Go to file
Adhemerval Zanella 1751c0519a math: Use sinhf from CORE-MATH
The CORE-MATH implementation is correctly rounded (for any rounding mode)
and shows slight better performance to the generic sinhf.

The code was adapted to glibc style and to use the definition of
math_config.h (to handle errno, overflow, and underflow).

Benchtest on x64_64 (Ryzen 9 5900X, gcc 14.2.1), aarch64 (Neoverse-N1,
gcc 13.3.1), and powerpc (POWER10, gcc 13.2.1):

Latency                      master        patched   improvement
x86_64                      52.6819        49.1489         6.71%
x86_64v2                    49.1162        42.9447        12.57%
x86_64v3                    46.9732        39.9157        15.02%
i686                       141.1470       129.6410         8.15%
aarch64 (Neoverse)          20.8539        17.1288        17.86%
power10                     14.5258        9.1906         36.73%

reciprocal-throughput        master        patched   improvement
x86_64                      27.5553        23.9395        13.12%
x86_64v2                    21.6423        20.3219         6.10%
x86_64v3                    21.4842        16.0224        25.42%
i686                        87.9709        86.1626         2.06%
aarch64 (Neoverse)          15.1919        12.2744        19.20%
power10                      7.2188         5.2611        27.12%

Signed-off-by: Alexei Sibidanov <sibid@uvic.ca>
Signed-off-by: Paul Zimmermann <Paul.Zimmermann@inria.fr>
Signed-off-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Reviewed-by: DJ Delorie <dj@redhat.com>
2024-12-18 17:24:43 -03:00
advisories
argp
assert
benchtests benchtests: Add tanhf benchmark 2024-12-18 17:24:42 -03:00
bits
catgets
ChangeLog.old
conform
csu
ctype
debug
dirent
dlfcn
elf tst-unique3.cc: Add explicit instantiation declaration for S<char>::i 2024-12-18 02:06:17 +08:00
gmon
gnulib
hesiod
htl htl: move pthread_sigmask into libc. 2024-12-14 23:13:14 +01:00
hurd
iconv iconv: do not report error exit with transliteration [BZ #32448] 2024-12-16 21:33:39 +01:00
iconvdata
include include/bits/sigstksz.h: Avoid #elif IS_IN (libsupport) 2024-12-14 19:30:16 +08:00
inet
intl
io Return EXIT_UNSUPPORTED if __builtin_add_overflow unavailable 2024-12-15 05:24:19 +08:00
libio ungetc: Guarantee single char pushback 2024-12-17 17:42:55 -05:00
locale
localedata
login
mach
malloc Hide all malloc functions from compiler [BZ #32366] 2024-12-17 20:51:08 +08:00
manual manual: Document more sigaction flags 2024-12-16 18:23:43 -05:00
math math: Fix the expected carg (inf) results 2024-12-18 17:24:43 -03:00
mathvec
misc Use empty initializer to silence GCC 4.9 or older 2024-12-16 04:06:30 +08:00
nis
nptl
nptl_db
nscd
nss Use empty initializer to silence GCC 4.9 or older 2024-12-16 04:06:30 +08:00
po
posix Replace __strcpy_chk with __builtin___strcpy_chk 2024-12-18 09:32:38 +08:00
resolv tst-resolv-invalid-cname.c: Explicitly cast 192 and 168 to char 2024-12-18 01:25:55 +08:00
resource
rt Use empty initializer to silence GCC 4.9 or older 2024-12-16 04:06:30 +08:00
scripts
setjmp
signal
socket
soft-fp
stdio-common ungetc: Guarantee single char pushback 2024-12-17 17:42:55 -05:00
stdlib tst-atexit-common.c: Mark _exit_with_flush as noreturn 2024-12-18 01:54:26 +08:00
string Hide memset/bzero from compiler 2024-12-18 18:51:34 +08:00
sunrpc
support tst-timespec.c: Explicitly cast TIME_T_MAX to double 2024-12-18 01:26:52 +08:00
sysdeps math: Use sinhf from CORE-MATH 2024-12-18 17:24:43 -03:00
sysvipc
termios
time Use empty initializer to silence GCC 4.9 or older 2024-12-16 04:06:30 +08:00
timezone
wcsmbs
wctype
.b4-config
.clang-format
.gitattributes
.gitignore
abi-tags
aclocal.m4 Check if clang and clang++ are used to test glibc 2024-12-18 18:50:18 +08:00
config.h.in
config.make.in
configure Check if clang and clang++ are used to test glibc 2024-12-18 18:50:18 +08:00
configure.ac Check if clang and clang++ are used to test glibc 2024-12-18 18:50:18 +08:00
CONTRIBUTED-BY
COPYING
COPYING.LIB
extra-lib.mk
gen-locales.mk
INSTALL
libc-abis
libof-iterator.mk
LICENSES
MAINTAINERS
Makeconfig Remove duplicated BUILD_CC in Makeconfig 2024-12-17 04:56:29 +08:00
Makefile
Makefile.help
Makefile.in
Makerules
NEWS
o-iterator.mk
README
Rules
SECURITY.md
SHARED-FILES math: Use sinhf from CORE-MATH 2024-12-18 17:24:43 -03:00
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 and x86_64-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
	loongarch64-*-linux-gnu Hardware floating point, LE only.
	m68k-*-linux-gnu
	microblaze*-*-linux-gnu
	mips-*-linux-gnu
	mips64-*-linux-gnu
	or1k-*-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.