glibc/sysdeps/unix/sysv/linux/arc
Joseph Myers 06caf53adf Implement C23 rootn.
C23 adds various <math.h> function families originally defined in TS
18661-4.  Add the rootn functions, which compute the Yth root of X for
integer Y (with a domain error if Y is 0, even if X is a NaN).  The
integer exponent has type long long int in C23; it was intmax_t in TS
18661-4, and as with other interfaces changed after their initial
appearance in the TS, I don't think we need to support the original
version of the interface.

As with pown and compoundn, I strongly encourage searching for worst
cases for ulps error for these implementations (necessarily
non-exhaustively, given the size of the input space).  I also expect a
custom implementation for a given format could be much faster as well
as more accurate, although the implementation is simpler than those
for pown and compoundn.

This completes adding to glibc those TS 18661-4 functions (ignoring
DFP) that are included in C23.  See
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118592 regarding the C23
mathematical functions (not just the TS 18661-4 ones) missing built-in
functions in GCC, where such functions might usefully be added.

Tested for x86_64 and x86, and with build-many-glibcs.py.
2025-05-14 10:51:46 +00:00
..
bits Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
sys Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
Implies Linux: Remove generic Implies 2023-02-20 10:21:19 -03:00
Makefile arc: Cleanup arcbe 2024-09-25 15:54:07 +01:00
Versions
arch-syscall.h Update syscall lists for Linux 6.13 2025-03-12 12:51:54 +00:00
c++-types.data
clone.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
clone3.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
configure configure: Use autoconf 2.71 2023-07-17 10:08:10 -04:00
configure.ac
fixup-asm-unistd.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
getcontext.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
kernel-features.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
ld.abilist
libBrokenLocale.abilist
libanl.abilist
libc.abilist stdlib: Implement C2Y uabs, ulabs, ullabs and uimaxabs 2025-04-08 12:51:51 +00:00
libc_malloc_debug.abilist
libc_sigaction.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
libdl.abilist
libm.abilist Implement C23 rootn. 2025-05-14 10:51:46 +00:00
libpthread.abilist
libresolv.abilist
librt.abilist
libthread_db.abilist
libutil.abilist
localplt.data
makecontext.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
mmap_internal.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
setcontext.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
shlib-versions arc: Remove HAVE_ARC_BE macro and disable big-endian port 2024-09-25 11:25:22 +02:00
sigcontextinfo.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
sigrestorer.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
single-thread.h
swapcontext.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
syscall.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
syscall_cancel.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
syscalls.list
sysdep.c Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
sysdep.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
ucontext-macros.h Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00
ucontext_i.sym
vfork.S Update copyright dates with scripts/update-copyrights 2025-01-01 11:22:09 -08:00