glibc/sysdeps/ia64/fpu
Wilco Dijkstra ea5c662c62 Improve performance of sincosf
This patch is a complete rewrite of sincosf.  The new version is
significantly faster, as well as simple and accurate.
The worst-case ULP is 0.5607, maximum relative error is 0.5303 * 2^-23 over
all 4 billion inputs.  In non-nearest rounding modes the error is 1ULP.

The algorithm uses 3 main cases: small inputs which don't need argument
reduction, small inputs which need a simple range reduction and large inputs
requiring complex range reduction.  The code uses approximate integer
comparisons to quickly decide between these cases.

The small range reducer uses a single reduction step to handle values up to
120.0.  It is fastest on targets which support inlined round instructions.

The large range reducer uses integer arithmetic for simplicity.  It does a
32x96 bit multiply to compute a 64-bit modulo result.  This is more than
accurate enough to handle the worst-case cancellation for values close to
an integer multiple of PI/4.  It could be further optimized, however it is
already much faster than necessary.

sincosf throughput gains on Cortex-A72:
* |x| < 0x1p-12 : 1.6x
* |x| < M_PI_4  : 1.7x
* |x| < 2 * M_PI: 1.5x
* |x| < 120.0   : 1.8x
* |x| < Inf     : 2.3x

	* math/Makefile: Add s_sincosf_data.c.
	* sysdeps/ia64/fpu/s_sincosf_data.c: New file.
	* sysdeps/ieee754/flt-32/s_sincosf.h (abstop12): Add new function.
	(sincosf_poly): Likewise.
	(reduce_small): Likewise.
	(reduce_large): Likewise.
	* sysdeps/ieee754/flt-32/s_sincosf.c (sincosf): Rewrite.
	* sysdeps/ieee754/flt-32/s_sincosf_data.c: New file with sincosf data.
	* sysdeps/m68k/m680x0/fpu/s_sincosf_data.c: New file.
	* sysdeps/x86_64/fpu/s_sincosf_data.c: New file.
2018-08-10 17:34:39 +01:00
..
bits Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
branred.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
doasin.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
dosincos.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
e_acos.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
e_acosf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
e_acosh.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
e_acoshf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
e_acoshl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
e_acosl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
e_asin.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
e_asinf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
e_asinl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
e_atan2.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
e_atan2f.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
e_atan2l.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
e_atanh.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
e_atanhf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
e_atanhl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
e_cosh.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
e_coshf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
e_coshl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
e_exp2.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
e_exp2f_data.c Optimized generic expf and exp2f with wrappers 2017-09-25 10:44:39 +01:00
e_exp2f.S Correct some ia64 libm_alias_float_other calls. 2017-12-06 21:50:32 +00:00
e_exp2l.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
e_exp10.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
e_exp10f.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
e_exp10l.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
e_exp.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
e_expf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
e_expl.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
e_fmod.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
e_fmodf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
e_fmodl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
e_gamma_r.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
e_gammaf_r.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
e_gammal_r.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
e_hypot.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
e_hypotf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
e_hypotl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
e_ilogbl.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
e_lgamma_r.c Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
e_lgammaf_r.c Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
e_lgammal_r.c Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
e_log2.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
e_log2f_data.c New generic log2f 2017-09-29 17:17:41 +01:00
e_log2f.S Correct some ia64 libm_alias_float_other calls. 2017-12-06 21:50:32 +00:00
e_log2l.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
e_log10.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
e_log10f.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
e_log10l.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
e_log.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
e_logf_data.c New generic logf 2017-09-29 11:46:46 +01:00
e_logf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
e_logl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
e_pow.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
e_powf_log2_data.c New generic powf 2017-09-29 17:30:53 +01:00
e_powf.S Correct some ia64 libm_alias_float_other calls. 2017-12-06 21:50:32 +00:00
e_powl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
e_rem_pio2.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
e_rem_pio2f.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
e_rem_pio2l.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
e_remainder.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
e_remainderf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
e_remainderl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
e_scalb.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
e_scalbf.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
e_scalbl.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
e_sinh.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
e_sinhf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
e_sinhl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
e_sqrt.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
e_sqrtf128.c Add float128 support for ia64. 2017-06-26 22:50:45 +00:00
e_sqrtf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
e_sqrtl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
fclrexcpt.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fedisblxcpt.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
feenablxcpt.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fegetenv.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fegetexcept.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fegetmode.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fegetround.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
feholdexcpt.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fesetenv.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fesetexcept.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fesetmode.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fesetround.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
feupdateenv.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fgetexcptflg.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fraiseexcpt.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
fsetexcptflg.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
ftestexcept.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
gen_import_file_list ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
get-rounding-mode.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
import_check ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
import_diffs ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
import_file.awk ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
import_intel_libm ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
k_rem_pio2f.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
lgamma-compat.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
libc_libm_error.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
libm_cpu_defs.h ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
libm_error_codes.h ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
libm_error.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
libm_frexp4.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
libm_frexp4f.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
libm_frexp4l.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
libm_frexp.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
libm_frexpf.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
libm_frexpl.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
libm_lgamma.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
libm_lgammaf.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
libm_lgammal.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
libm_reduce.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
libm_scalblnf.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
libm_sincos_large.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
libm_sincos.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
libm_sincosf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
libm_sincosl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
libm_support.h Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
libm_tan.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
libm-symbols.h Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
libm-test-ulps Update IA64 libm-test-ulps 2017-12-12 16:57:41 -02:00
libm-test-ulps-name Do not hardcode platform names in manual/libm-err-tab.pl (bug 14139). 2016-11-04 16:49:06 +00:00
Makefile ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
math_errf.c Optimized generic expf and exp2f with wrappers 2017-09-25 10:44:39 +01:00
math_ldbl.h Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
mpa.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
mpatan2.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
mpatan.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
mpsqrt.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
mptan.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
printf_fphex.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
README ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_asinh.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
s_asinhf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
s_asinhl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
s_atan.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
s_atanf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
s_atanl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
s_cbrt.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
s_cbrtf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
s_cbrtl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
s_ceil.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
s_ceilf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
s_ceill.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
s_copysign.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_copysignf.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_copysignl.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_cos.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
s_cosf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
s_cosl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
s_erf.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
s_erfc.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
s_erfcf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
s_erfcl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
s_erff.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
s_erfl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
s_expm1.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
s_expm1f.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
s_expm1l.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
s_fabs.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
s_fabsf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
s_fabsl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
s_fdim.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
s_fdimf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
s_fdiml.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
s_finite.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_finitef.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_finitel.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_floor.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
s_floorf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
s_floorl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
s_fma.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
s_fmaf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
s_fmal.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
s_fmax.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
s_fmaxf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
s_fmaxl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
s_fpclassify.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_fpclassifyf.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_fpclassifyl.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_frexp.c Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
s_frexpf.c Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
s_frexpl.c Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
s_ilogb.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_ilogbf.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_isinf.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_isinff.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_isinfl.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_isnan.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_isnanf.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_isnanl.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_ldexp.c Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
s_ldexpf.c Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
s_ldexpl.c Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
s_libm_ldexp.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_libm_ldexpf.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_libm_ldexpl.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_libm_scalbn.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_libm_scalbnf.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_libm_scalbnl.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_log1p.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
s_log1pf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
s_log1pl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
s_logb.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
s_logbf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
s_logbl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
s_matherrf.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
s_matherrl.c Obsolete matherr, _LIB_VERSION, libieee.a. 2017-08-21 17:45:10 +00:00
s_modf.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
s_modff.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
s_modfl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
s_nearbyint.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
s_nearbyintf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
s_nearbyintl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
s_nextafter.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
s_nextafterf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
s_nextafterl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
s_nexttoward.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_nexttowardf.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_nexttowardl.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_rint.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
s_rintf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
s_rintl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
s_round.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
s_roundf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
s_roundl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
s_scalblnf.c Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
s_scalbn.c Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
s_scalbnf.c Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
s_scalbnl.c Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
s_signbit.S Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
s_signbitf.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_signbitl.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_significand.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_significandf.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_significandl.S ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_sin.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_sincos.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_sincosf_data.c Improve performance of sincosf 2018-08-10 17:34:39 +01:00
s_sincosf.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_sincosl.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_sinf.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_sinl.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
s_tan.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
s_tanf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
s_tanh.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
s_tanhf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
s_tanhl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
s_tanl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
s_trunc.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
s_truncf.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
s_truncl.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
sfp-machine.h Add float128 support for ia64. 2017-06-26 22:50:45 +00:00
sincos32.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
t_exp.c ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
Versions ia64: relocate out of ports/ subdir 2014-02-16 01:12:38 -05:00
w_acos_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_acos.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_acosf_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_acosf.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_acosh_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_acosh.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_acoshf_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_acoshf.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_acoshl_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_acoshl.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_acosl_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_acosl.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_asin_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_asin.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_asinf_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_asinf.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_asinl_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_asinl.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_atan2_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_atan2.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_atan2f_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_atan2f.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_atan2l_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_atan2l.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_atanh_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_atanh.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_atanhf_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_atanhf.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_atanhl_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_atanhl.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_cosh_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_cosh.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_coshf_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_coshf.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_coshl_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_coshl.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_exp2_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_exp2.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_exp2f_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_exp2f.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_exp2l_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_exp2l.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_exp10_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_exp10.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_exp10f_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_exp10f.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_exp10l_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_exp10l.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_exp_compat.c Move w_exp to libm-compat-call-auto 2017-02-08 17:44:20 -02:00
w_exp.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_expf_compat.c Move w_exp to libm-compat-call-auto 2017-02-08 17:44:20 -02:00
w_expf.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_expl_compat.c Move w_exp to libm-compat-call-auto 2017-02-08 17:44:20 -02:00
w_expl.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_fmod_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_fmod.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_fmodf_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_fmodf.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_fmodl_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_fmodl.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_hypot_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_hypot.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_hypotf_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_hypotf.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_hypotl_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_hypotl.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_lgamma_main.c Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
w_lgamma_r_compat.c Move w_lgamma_r to libm-compat-calls-auto 2017-02-08 17:36:09 -02:00
w_lgamma_r.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_lgammaf_main.c Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
w_lgammaf_r_compat.c Move w_lgamma_r to libm-compat-calls-auto 2017-02-08 17:36:09 -02:00
w_lgammaf_r.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_lgammal_main.c Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
w_lgammal_r_compat.c Move w_lgamma_r to libm-compat-calls-auto 2017-02-08 17:36:09 -02:00
w_lgammal_r.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_log1p.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
w_log1pf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
w_log1pl.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
w_log2_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_log2.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_log2f_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_log2f.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_log2l_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_log2l.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_log10_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_log10.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_log10f_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_log10f.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_log10l_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_log10l.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_log_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_log.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_logf_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_logf.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_logl_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_logl.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_pow_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_pow.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_powf_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_powf.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_powl_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_powl.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_remainder_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_remainder.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_remainderf_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_remainderf.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_remainderl_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_remainderl.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_scalb_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_scalbf_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_scalbl_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_scalblnf.c Update copyright dates with scripts/update-copyrights. 2018-01-01 00:32:25 +00:00
w_sinh_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_sinh.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_sinhf_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_sinhf.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_sinhl_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_sinhl.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_sqrt_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_sqrt.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_sqrtf_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_sqrtf.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_sqrtl_compat.c Move wrappers to libm-compat-calls-auto 2017-01-04 16:25:04 -02:00
w_sqrtl.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_tgamma_compat.S Use libm_alias_double for ia64. 2017-11-29 01:23:23 +00:00
w_tgamma.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_tgammaf_compat.S Use libm_alias_float for ia64. 2017-11-29 17:38:35 +00:00
w_tgammaf.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00
w_tgammal_compat.S Use libm_alias_ldouble macros in sysdeps/ia64/fpu. 2017-11-23 23:34:54 +00:00
w_tgammal.c Prefer new libm function wrappers for !LIBM_SVID_COMPAT. 2017-09-05 23:35:55 +00:00

  ----------------------------------------------------------
  Notes on how to update libm based on Intel's libm releases
  ----------------------------------------------------------

This source code in this directory is currently based on Intel libm
v2.1 as available from:

  http://www.intel.com/software/products/opensource/libraries/num.htm

To ease importing, fix some bugs, and simplify integration into libc,
it is also necessary to apply the patch at:

  ftp://ftp.hpl.hp.com/pub/linux-ia64/intel-libm-041228.diff.gz

The expectation is that Intel will integrate most if not all of these
changes into future releases of libm, so this patching step can
hopefully be omitted in the future.

Once the patched libm sources are extracted in a directory $LIBM, they
can be imported into the libc source tree at $LIBC with the following
step:

	$ cd $LIBC/src/sysdep/ia64/fpu
	$ ./import_intel_libm $LIBM

This should produce a number of "Importing..." messages, without
showing any errors.

At this point, you should be able to build glibc in the usual fashion.
We assume you do this in directory $OBJ.  Once the build has
completed, run "make check" to verify that all (math) checks succeed.
If these checks succeed, you should also run the following commands to
verify that the new libm doesn't pollute the name-space and has proper
size-info for the data objects:

	$ cd $LIBC/src/sysdep/ia64/fpu
	$ import_check $OBJ/math/

There should be no (unexpected) errors reported by this script.

As an optional step, you may also want to confirm that the new libm
exports the exact same global symbols as the old one.

If you want to see the changes introduced by the "import_intel_libm"
script, you can run the commands:

	$ cd $LIBC/src/sysdep/ia64/fpu
	$ import_diffs

That's it.