libc/newlib/libc/include
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
..
machine New expf, exp2f, logf, log2f and powf implementations 2017-10-13 10:58:00 +02:00
rpc
sys Change time_t to 64-bit by default 2017-09-07 15:39:34 +02:00
_ansi.h
_newlib_version.h
_syslist.h
alloca.h
ar.h
argz.h
assert.h
complex.h Fixed warnings for some long double complex methods 2017-07-05 14:40:02 +02:00
cpio.h Add cpio.h 2016-04-04 10:25:27 -05:00
ctype.h Rename <sys/_locale.h> to <xlocale.h> 2017-03-22 10:03:45 +01:00
devctl.h devctl.h: Fix typo and include proper header 2017-01-25 12:37:19 +01:00
dirent.h Feature test macros overhaul: dirent.h 2016-03-17 21:08:51 -05:00
elf.h Add elf.h to newlib 2017-08-02 01:18:55 -05:00
envlock.h
envz.h
errno.h
fastmath.h
fcntl.h
fnmatch.h Feature test macros overhaul: fnmatch.h 2016-03-17 21:08:54 -05:00
getopt.h
glob.h
grp.h Feature test macros overhaul: grp.h 2016-03-17 21:08:56 -05:00
iconv.h
ieeefp.h math: guard BSD finite/isinf/isnan functions properly in math.h 2016-04-04 14:13:21 -05:00
inttypes.h Importing wcstoumax inttypes method from FreeBSD. 2017-08-02 13:02:26 +02:00
langinfo.h Rename <sys/_locale.h> to <xlocale.h> 2017-03-22 10:03:45 +01:00
libgen.h
limits.h Feature test macros overhaul: limits.h 2016-03-17 21:08:57 -05:00
locale.h Rename <sys/_locale.h> to <xlocale.h> 2017-03-22 10:03:45 +01:00
malloc.h
math.h Remove legacy unions which are no longer used 2017-04-17 19:22:19 -04:00
memory.h Provide <memory.h> 2016-11-22 14:21:35 +01:00
newlib.h
paths.h
pthread.h Add pthread_setname_np() and pthread_getname_np() 2017-01-09 16:19:58 +01:00
pwd.h Feature test macros overhaul: pwd.h 2016-03-17 21:09:01 -05:00
reent.h Eliminate use of Newlib-specific <machine/types.h> 2016-04-13 13:30:27 +02:00
regdef.h
regex.h
sched.h
search.h
setjmp.h
signal.h Feature test macros overhaul: signal.h 2016-03-17 21:09:03 -05:00
spawn.h
stdatomic.h
stdint.h Provide __intmax_t and __uintmax_t 2016-10-25 16:24:05 +02:00
stdio.h stdio.h: Don't define unlocked macros using static inline on C++ 2017-09-04 10:52:33 +02:00
stdio_ext.h
stdlib.h Add BSD-specific reallocarray() 2017-04-04 12:19:18 +02:00
string.h Port strnstr.c to newlib. 2017-08-25 18:00:46 +02:00
strings.h include: fix ffs, fls guards 2017-08-30 12:29:47 -05:00
tar.h Feature test macros overhaul: tar.h 2016-04-04 10:25:29 -05:00
termios.h
tgmath.h Add missing long double functions to Cygwin 2016-03-29 14:43:55 +02:00
threads.h
time.h Rename <sys/_locale.h> to <xlocale.h> 2017-03-22 10:03:45 +01:00
unctrl.h
unistd.h
utime.h
utmp.h
wchar.h Rename <sys/_locale.h> to <xlocale.h> 2017-03-22 10:03:45 +01:00
wctype.h Rename <sys/_locale.h> to <xlocale.h> 2017-03-22 10:03:45 +01:00
wordexp.h
xlocale.h Rename <sys/_locale.h> to <xlocale.h> 2017-03-22 10:03:45 +01:00