newlib-cygwin/newlib/libc
Szabolcs Nagy c156098271 New expf, exp2f, logf, log2f and powf implementations
Based on code from https://github.com/ARM-software/optimized-routines/

This patch adds a highly optimized generic implementation of expf,
exp2f, logf, log2f and powf.  The new functions are not only
faster (6x for powf!), but are also smaller and more accurate.
In order to achieve this, the algorithm uses double precision
arithmetic for accuracy, avoids divisions and uses small table
lookups to minimize the polynomials.  Special cases are handled
inline to avoid the unnecessary overhead of wrapper functions and
set errno to POSIX requirements.

The new functions are added under newlib/libm/common, but the old
implementations are kept (in newlib/libm/math) for non-IEEE or
pre-C99 systems.  Targets can enable the new math code by defining
__OBSOLETE_MATH_DEFAULT to 0 in newlib/libc/include/machine/ieeefp.h,
users can override the default by defining __OBSOLETE_MATH.
Currently the new code is enabled for AArch64 and AArch32 with VFP.
Targets with a single precision FPU may still prefer the old
implementation.

libm.a size changes:
arm: -1692
arm/thumb/v7-a/nofp: -878
arm/thumb/v7-a+fp/hard: -864
arm/thumb/v7-a+fp/softfp: -908
aarch64: -1476
2017-10-13 10:58:00 +02:00
..
argz Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
ctype Bump release to 2.5.0 for yearly snapshot. 2016-12-22 21:33:54 -05:00
errno Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
iconv Fix compile error due to new strnstr() 2017-08-28 17:31:52 +02:00
include New expf, exp2f, logf, log2f and powf implementations 2017-10-13 10:58:00 +02:00
locale Fix duplocale (libc/locale/duplocale.c) which fails to properly call __loadlocale 2017-03-13 11:12:01 +01:00
machine Change license to FreeBSD License for RISC-V 2017-08-21 11:08:54 +02:00
misc Add ffsl(), ffsll(), fls(), flsl(), flsll() 2017-07-05 13:49:48 +02:00
posix Only define static locks in multithreaded mode 2017-02-13 17:04:17 -05:00
reent Revert "Fix __getreent function for Cygwin" 2016-08-18 15:24:18 +02:00
search Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
signal Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
stdio stdio: Fix make rule override 2017-07-28 15:05:54 +02:00
stdio64 Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
stdlib newlib: regenerate libc/stdlib/Makefile.am 2017-08-11 10:17:16 +02:00
string Fix warnings and documentation in strnstr.c 2017-09-19 15:35:09 -05:00
sys RTEMS: Fix _PTHREAD_MUTEX_INITIALIZER 2017-10-13 08:07:13 +02:00
syscalls Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
time Remove harmful casts in gmtime_r() 2017-09-07 15:39:34 +02:00
unix Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
xdr Regenerate newlib Makefiles 2016-07-04 17:13:55 +01:00
Makefile.am Make newlib manpages (v3) 2016-07-04 14:17:10 +01:00
Makefile.in Bump release to 2.5.0 for yearly snapshot. 2016-12-22 21:33:54 -05:00
aclocal.m4 Fix up errors in regenerated files for 2.3.0 release. 2016-01-04 12:57:31 -05:00
configure Allow locking routine to be retargeted 2017-02-13 17:07:11 -05:00
configure.in Allow locking routine to be retargeted 2017-02-13 17:07:11 -05:00
libc.in.xml Make newlib manpages (v3) 2016-07-04 14:17:10 +01:00
libc.texinfo Fix versions in documentation (manually for now) 2017-01-09 16:22:02 +01:00
saber
sys.tex Don't include stdio64 functions in reentrant syscalls menu when not bulding stdio64. 2015-08-03 09:54:33 +01:00