acadia-newlib/newlib/libm/mathfp
Mike Frysinger 2339979934 newlib: libm: merge machine/ configure scripts up a level
The machine configure scripts are all effectively stub scripts that
pass the higher level options to its own makefile.  The only one doing
any custom tests was nds32.  The rest were all effectively the same as
the libm/ configure script.

So instead of recursively running configure in all of these subdirs,
generate their makefiles from the top-level configure.  For nds32,
deploy a pattern of including subdir logic via m4:
	m4_include([machine/nds32/acinclude.m4])

Even its set of checks are very small -- it does 2 preprocessor tests
and sets up 2 makefile conditionals.

Some of the generated machine makefiles have a bunch of extra stuff
added to them, but that's because they were inconsistent in their
configure libtool calls.  The top-level has it, so it exports some
new vars to the ones that weren't already.
2022-01-26 03:11:20 -05:00
..
Makefile.am newlib: migrate from INCLUDES to AM_CPPFLAGS 2022-01-05 20:29:53 -05:00
Makefile.in newlib: libm: merge machine/ configure scripts up a level 2022-01-26 03:11:20 -05:00
README 2012-10-24 Jeff Johnston <jjohnstn@redhat.com> 2012-10-24 21:01:39 +00:00
e_acosh.c Remove matherr, and SVID and X/Open math library configurations 2019-01-23 10:46:24 +01:00
e_atanh.c Remove matherr, and SVID and X/Open math library configurations 2019-01-23 10:46:24 +01:00
e_hypot.c Remove matherr, and SVID and X/Open math library configurations 2019-01-23 10:46:24 +01:00
e_j0.c
e_j1.c
e_remainder.c mathfp: remove TRAD_SYNOPSIS 2017-12-01 03:41:54 -06:00
e_scalb.c
ef_acosh.c
ef_atanh.c
ef_hypot.c
ef_j0.c
ef_j1.c
ef_remainder.c
ef_scalb.c
er_gamma.c
er_lgamma.c Remove matherr, and SVID and X/Open math library configurations 2019-01-23 10:46:24 +01:00
erf_gamma.c
erf_lgamma.c
mathfp.tex
s_acos.c Remove matherr, and SVID and X/Open math library configurations 2019-01-23 10:46:24 +01:00
s_asin.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
s_asine.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
s_asinh.c mathfp: remove TRAD_SYNOPSIS 2017-12-01 03:41:54 -06:00
s_atan.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
s_atan2.c Remove matherr, and SVID and X/Open math library configurations 2019-01-23 10:46:24 +01:00
s_atangent.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
s_ceil.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
s_cos.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
s_cosh.c Remove matherr, and SVID and X/Open math library configurations 2019-01-23 10:46:24 +01:00
s_erf.c mathfp: remove TRAD_SYNOPSIS 2017-12-01 03:41:54 -06:00
s_exp.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
s_exp2.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
s_fabs.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
s_floor.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
s_fmod.c Remove matherr, and SVID and X/Open math library configurations 2019-01-23 10:46:24 +01:00
s_frexp.c mathfp: remove TRAD_SYNOPSIS 2017-12-01 03:41:54 -06:00
s_ispos.c
s_ldexp.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
s_log.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
s_log10.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
s_logarithm.c Remove matherr, and SVID and X/Open math library configurations 2019-01-23 10:46:24 +01:00
s_mathcnst.c
s_numtest.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
s_pow.c Remove matherr, and SVID and X/Open math library configurations 2019-01-23 10:46:24 +01:00
s_signif.c
s_sin.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
s_sincos.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
s_sine.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
s_sineh.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
s_sinf.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
s_sinh.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
s_sqrt.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
s_tan.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
s_tanh.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
s_tgamma.c
sf_acos.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
sf_asin.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
sf_asine.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
sf_asinh.c
sf_atan.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
sf_atan2.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
sf_atangent.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
sf_ceil.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
sf_cos.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
sf_cosh.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
sf_erf.c
sf_exp.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
sf_exp2.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
sf_fabs.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
sf_floor.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
sf_fmod.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
sf_frexp.c
sf_ispos.c
sf_ldexp.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
sf_log.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
sf_log10.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
sf_logarithm.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
sf_numtest.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
sf_pow.c
sf_signif.c
sf_sin.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
sf_sincos.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
sf_sine.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
sf_sineh.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
sf_sinh.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
sf_sqrt.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
sf_tan.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
sf_tanh.c ansification: remove _DEFUN 2018-01-17 11:47:26 -06:00
sf_tgamma.c
w_cabs.c
w_drem.c
w_jn.c Remove matherr, and SVID and X/Open math library configurations 2019-01-23 10:46:24 +01:00
wf_cabs.c
wf_drem.c
wf_jn.c Remove matherr, and SVID and X/Open math library configurations 2019-01-23 10:46:24 +01:00
zmath.h ansification: remove _EXFUN, _EXFUN_NOTHROW 2018-01-17 11:47:29 -06:00

README

This directory was an experiment to use floating-point operations to implement
the math library when a processor had a floating-point instruction set.  The
experiment was a failure in that some of the algorithms chosen (e.g. recursive
algorithms for sin/cos, etc..) are too simple and do not provide proper accuracy 
nor handle very large or very small inputs adequately.

The code is considered moth-balled.  The stable math library routines can be
found in libm/math and the configuration option to use this has been removed.

If you wish to experiment with the concept, please feel free and report back if
you have major improvements.