musl/src
Szabolcs Nagy e42a977fe5 math: tanh.c cleanup similar to sinh, cosh
comments are kept in the double version of the function

compared to fdlibm/freebsd we partition the domain into one
more part and select different threshold points:
now the [log(5/3)/2,log(3)/2] and [log(3)/2,inf] domains
should have <1.5ulp error
(so only the last bit may be wrong, assuming good exp, expm1)

(note that log(3)/2 and log(5/3)/2 are the points where tanh
changes resolution: tanh(log(3)/2)=0.5, tanh(log(5/3)/2)=0.25)

for some x < log(5/3)/2 (~=0.2554) the error can be >1.5ulp
but it should be <2ulp
(the freebsd code had some >2ulp errors in [0.255,1])

even with the extra logic the new code produces smaller
object files
2012-12-16 19:52:42 +01:00
..
aio use alternate argument syntax for restrict with lio_listio 2012-12-04 19:03:42 -05:00
complex complex: add C11 CMPLX macros and replace cpack with them 2012-11-13 01:31:49 +01:00
conf report support of TPS option in unistd.h and sysconf 2012-11-11 15:54:20 -05:00
crypt add crypt_md5 password hash 2012-09-15 23:41:07 -04:00
ctype fix argument type error on wcwidth function 2012-08-02 21:02:34 -04:00
dirent use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
env fix ordering of shared library ctors with respect to libc init 2012-11-30 17:56:23 -05:00
errno better description for errno==0 2012-04-16 18:37:53 -04:00
exit further use of _Noreturn, for non-plain-C functions 2012-09-06 23:34:10 -04:00
fcntl move fallocate syscall wrapper to linux-specific syscalls dir 2012-09-08 00:41:11 -04:00
fenv fenv support for ppc, untested 2012-11-18 16:31:14 -05:00
internal make CMPLX macros available in complex.h in non-c11 mode as well 2012-12-11 22:44:36 +01:00
ipc fix shmdt syscall calling convention on old archs 2012-10-28 15:04:26 -04:00
ldso fix breakage in ldd (failure to print library load address) 2012-12-15 23:34:08 -05:00
legacy more close-on-exec fixes, mostly using new "e" flag to fopen 2012-09-29 18:14:46 -04:00
linux remove __arch_prctl alias for arch_prctl 2012-12-07 16:22:13 -05:00
locale use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
malloc page-align initial brk value used by malloc in shared libc 2012-12-07 22:33:11 -05:00
math math: tanh.c cleanup similar to sinh, cosh 2012-12-16 19:52:42 +01:00
misc move new linux syscall wrapper functions to proper source dir 2012-12-07 16:17:16 -05:00
mman overhaul sem_open 2012-09-30 19:35:40 -04:00
mq use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
multibyte use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
network improve SOCK_NONBLOCK/SOCK_CLOEXEC fallback code 2012-11-05 14:30:15 -05:00
passwd more close-on-exec fixes, mostly using new "e" flag to fopen 2012-09-29 18:14:46 -04:00
prng ditch the priority inheritance locks; use malloc's version of lock 2012-04-24 16:32:23 -04:00
process add support for thread scheduling (POSIX TPS option) 2012-11-11 15:38:04 -05:00
regex use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
sched add support for thread scheduling (POSIX TPS option) 2012-11-11 15:38:04 -05:00
search search: add comments to tsearch_avl.c 2012-05-13 01:50:53 +02:00
select use restrict everywhere it's required by c99 and/or posix 2008 2012-09-06 22:44:55 -04:00
setjmp remove fenv saving/loading code from setjmp/longjmp on arm 2012-12-05 19:13:47 -05:00
signal fix sigorset/sigandset: _NSIG/8 is the size in bytes 2012-12-06 22:48:46 +01:00
stat add obsolete futimesat() 2012-12-06 20:27:54 +01:00
stdio document self-synchronized destruction issue for stdio locking 2012-12-10 18:31:39 -05:00
stdlib clean up stdio_impl.h 2012-11-08 16:39:41 -05:00
string simplify logic in stpcpy; avoid copying first aligned byte twice 2012-10-22 15:17:09 -04:00
temp remove ugly prng from mk*temp and just re-poll time on retry 2011-07-28 22:03:54 -04:00
termios legacy junk compatibility grab-bag 2012-04-18 12:22:24 -04:00
thread fix some restrict-qualifier mismatches in newly added interfaces 2012-11-27 09:44:30 -05:00
time clean up sloppy nested inclusion from pthread_impl.h 2012-11-08 17:04:20 -05:00
unistd fix double errno-decoding in the old-kernel fallback path of pipe2 2012-12-11 09:38:38 -05:00