glibc/sysdeps/ieee754/ldbl-128ibm
Alan Modra 650ef4bd79 PowerPC floating point little-endian [4 of 15]
http://sourceware.org/ml/libc-alpha/2013-08/msg00084.html

Another batch of ieee854 macros and union replacement.  These four
files also have bugs fixed with this patch.  The fact that the two
doubles in an IBM long double may have different signs means that
negation and absolute value operations can't just twiddle one sign bit
as you can with ieee864 style extended double.  fmodl, remainderl,
erfl and erfcl all had errors of this type.  erfl also returned +1 for
large magnitude negative input where it should return -1.  The hypotl
error is innocuous since the value adjusted twice is only used as a
flag.  The e_hypotl.c tests for large "a" and small "b" are mutually
exclusive because we've already exited when x/y > 2**120.  That allows
some further small simplifications.

	[BZ #15734], [BZ #15735]
	* sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
	all uses of ieee875 long double macros and unions.  Simplify test
	for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
	ldbl_extract_mantissa value for ix,iy exponents.  Properly
	normalize after ldbl_extract_mantissa, and don't add hidden bit
	already handled.  Don't treat low word of ieee854 mantissa like
	low word of IBM long double and mask off bit when testing for
	zero.
	* sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
	all uses of ieee875 long double macros and unions.  Simplify tests
	for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
	adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
	two1022, instead use their values.  Recognise that tests for large
	"a" and small "b" are mutually exclusive.  Rename vars.  Comment.
	* sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
	Rewrite all uses of ieee875 long double macros and unions.  Simplify
	test for 0.0L and nan.  Correct negation.
	* sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
	ieee875 long double macros and unions.  Correct output for large
	magnitude x.  Correct absolute value calculation.
	(__erfcl): Likewise.
	* math/libm-test.inc: Add tests for errors discovered in IBM long
	double versions of fmodl, remainderl, erfl and erfcl.
2013-10-04 10:32:48 +09:30
..
e_acoshl.c PowerPC floating point little-endian [2 of 15] 2013-10-04 10:32:19 +09:30
e_acosl.c PowerPC floating point little-endian [2 of 15] 2013-10-04 10:32:19 +09:30
e_asinl.c PowerPC floating point little-endian [2 of 15] 2013-10-04 10:32:19 +09:30
e_atan2l.c PowerPC floating point little-endian [3 of 15] 2013-10-04 10:32:36 +09:30
e_atanhl.c PowerPC floating point little-endian [2 of 15] 2013-10-04 10:32:19 +09:30
e_coshl.c PowerPC floating point little-endian [2 of 15] 2013-10-04 10:32:19 +09:30
e_exp10l.c IBM long double mechanical changes to support little-endian 2013-10-04 10:28:42 +09:30
e_expl.c IBM long double mechanical changes to support little-endian 2013-10-04 10:28:42 +09:30
e_fmodl.c PowerPC floating point little-endian [4 of 15] 2013-10-04 10:32:48 +09:30
e_gammal_r.c PowerPC floating point little-endian [3 of 15] 2013-10-04 10:32:36 +09:30
e_hypotl.c PowerPC floating point little-endian [4 of 15] 2013-10-04 10:32:48 +09:30
e_ilogbl.c PowerPC floating point little-endian [3 of 15] 2013-10-04 10:32:36 +09:30
e_j0l.c
e_j1l.c
e_jnl.c PowerPC floating point little-endian [3 of 15] 2013-10-04 10:32:36 +09:30
e_lgammal_r.c
e_log2l.c PowerPC floating point little-endian [2 of 15] 2013-10-04 10:32:19 +09:30
e_log10l.c PowerPC floating point little-endian [3 of 15] 2013-10-04 10:32:36 +09:30
e_logl.c PowerPC floating point little-endian [3 of 15] 2013-10-04 10:32:36 +09:30
e_powl.c PowerPC floating point little-endian [3 of 15] 2013-10-04 10:32:36 +09:30
e_rem_pio2l.c PowerPC floating point little-endian [2 of 15] 2013-10-04 10:32:19 +09:30
e_remainderl.c PowerPC floating point little-endian [4 of 15] 2013-10-04 10:32:48 +09:30
e_sinhl.c PowerPC floating point little-endian [2 of 15] 2013-10-04 10:32:19 +09:30
e_sqrtl.c
gamma_productl.c
ieee754.h IBM long double mechanical changes to support little-endian 2013-10-04 10:28:42 +09:30
k_cosl.c PowerPC floating point little-endian [2 of 15] 2013-10-04 10:32:19 +09:30
k_sincosl.c PowerPC floating point little-endian [2 of 15] 2013-10-04 10:32:19 +09:30
k_sinl.c PowerPC floating point little-endian [2 of 15] 2013-10-04 10:32:19 +09:30
k_tanl.c PowerPC floating point little-endian [3 of 15] 2013-10-04 10:32:36 +09:30
ldbl2mpn.c Fix for [BZ #15680] IBM long double inaccuracy 2013-10-04 10:30:56 +09:30
Makefile
math_ldbl.h PowerPC floating point little-endian [2 of 15] 2013-10-04 10:32:19 +09:30
mpn2ldbl.c Fix for [BZ #15680] IBM long double inaccuracy 2013-10-04 10:30:56 +09:30
printf_fphex.c PowerPC floating point little-endian [1 of 15] 2013-10-04 10:31:41 +09:30
s_asinhl.c PowerPC floating point little-endian [2 of 15] 2013-10-04 10:32:19 +09:30
s_atanl.c PowerPC floating point little-endian [2 of 15] 2013-10-04 10:32:19 +09:30
s_cbrtl.c
s_ceill.c
s_copysignl.c
s_cosl.c PowerPC floating point little-endian [2 of 15] 2013-10-04 10:32:19 +09:30
s_cprojl.c Fix cproj handling of (finite, NaN) arguments (bug 15531). 2013-08-20 19:41:15 +00:00
s_ctanhl.c
s_ctanl.c
s_erfl.c PowerPC floating point little-endian [4 of 15] 2013-10-04 10:32:48 +09:30
s_expm1l.c PowerPC floating point little-endian [3 of 15] 2013-10-04 10:32:36 +09:30
s_fabsl.c PowerPC floating point little-endian [2 of 15] 2013-10-04 10:32:19 +09:30
s_finitel.c PowerPC floating point little-endian [2 of 15] 2013-10-04 10:32:19 +09:30
s_floorl.c
s_fmal.c
s_fpclassifyl.c PowerPC floating point little-endian [2 of 15] 2013-10-04 10:32:19 +09:30
s_frexpl.c PowerPC floating point little-endian [3 of 15] 2013-10-04 10:32:36 +09:30
s_isinf_nsl.c PowerPC floating point little-endian [3 of 15] 2013-10-04 10:32:36 +09:30
s_isinfl.c PowerPC floating point little-endian [3 of 15] 2013-10-04 10:32:36 +09:30
s_isnanl.c PowerPC floating point little-endian [2 of 15] 2013-10-04 10:32:19 +09:30
s_issignalingl.c PowerPC floating point little-endian [2 of 15] 2013-10-04 10:32:19 +09:30
s_llrintl.c
s_llroundl.c
s_log1pl.c PowerPC floating point little-endian [3 of 15] 2013-10-04 10:32:36 +09:30
s_logbl.c PowerPC floating point little-endian [2 of 15] 2013-10-04 10:32:19 +09:30
s_lrintl.c
s_lroundl.c
s_modfl.c PowerPC floating point little-endian [3 of 15] 2013-10-04 10:32:36 +09:30
s_nearbyintl.c IBM long double mechanical changes to support little-endian 2013-10-04 10:28:42 +09:30
s_nextafterl.c PowerPC floating point little-endian [3 of 15] 2013-10-04 10:32:36 +09:30
s_nexttoward.c PowerPC floating point little-endian [3 of 15] 2013-10-04 10:32:36 +09:30
s_nexttowardf.c PowerPC floating point little-endian [3 of 15] 2013-10-04 10:32:36 +09:30
s_remquol.c PowerPC floating point little-endian [3 of 15] 2013-10-04 10:32:36 +09:30
s_rintl.c
s_roundl.c
s_scalblnl.c PowerPC floating point little-endian [3 of 15] 2013-10-04 10:32:36 +09:30
s_scalbnl.c PowerPC floating point little-endian [3 of 15] 2013-10-04 10:32:36 +09:30
s_signbitl.c PowerPC floating point little-endian [2 of 15] 2013-10-04 10:32:19 +09:30
s_sincosl.c PowerPC floating point little-endian [2 of 15] 2013-10-04 10:32:19 +09:30
s_sinl.c PowerPC floating point little-endian [2 of 15] 2013-10-04 10:32:19 +09:30
s_tanhl.c PowerPC floating point little-endian [3 of 15] 2013-10-04 10:32:36 +09:30
s_tanl.c PowerPC floating point little-endian [2 of 15] 2013-10-04 10:32:19 +09:30
s_truncl.c
strtold_l.c IBM long double mechanical changes to support little-endian 2013-10-04 10:28:42 +09:30
t_sincosl.c
w_expl.c
x2y2m1l.c IBM long double mechanical changes to support little-endian 2013-10-04 10:28:42 +09:30