gcc/libquadmath/math
Joseph Myers 667b3ec15d Update libquadmath fmaq from glibc, fix nanq issues.
This patch extends update-quadmath.py to update fmaq from glibc.

The issue in that function was that quadmath-imp.h had a struct in a
union with mant_high and mant_low fields (up to 64-bit) whereas glibc
has mantissa0, mantissa1, mantissa2 and mantissa3 (up to 32-bit).  The
patch changes those fields to be the same as in glibc, moving printf /
strtod code that also uses those fields back to closer to the glibc
form.  This allows fmaq to be updated automatically from glibc (which
brings in at least one bug fix from glibc from 2015).

nanq was also using the mant_high field name, and had other issues: it
only partly initialized the union from which a value was returned, and
setting mant_high to 1 meant a signaling NaN would be returned rather
than a quiet NaN.  This patch fixes those issues as part of updating
it to use the changed interfaces (but does not fix the issue of not
using the argument).

Bootstrapped with no regressions on x86_64-pc-linux-gnu.

	* quadmath-imp.h (ieee854_float128): Use mantissa0, mantissa1,
	mantissa2 and mantissa3 fields instead of mant_high and mant_low.
	Change nan field to ieee_nan.
	* update-quadmath.py (update_sources): Also update fmaq.c.
	* math/nanq.c (nanq): Use ieee_nan field of union.
	Zero-initialize f.  Set quiet_nan field.
	* printf/flt1282mpn.c, printf/printf_fphex.c, strtod/mpn2flt128.c,
	strtod/strtoflt128.c: Use mantissa0, mantissa1, mantissa2 and
	mantissa3 fields.  Use ieee_nan and quiet_nan field.
	* math/fmaq.c: Regenerate from glibc sources with
	update-quadmath.py.

From-SVN: r265874
2018-11-07 13:49:03 +00:00
..
acoshq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
acosq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
asinhq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
asinq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
atan2q.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
atanhq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
atanq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
cacoshq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
cacosq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
casinhq_kernel.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
casinhq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
casinq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
catanhq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
catanq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
cbrtq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
ccoshq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
ceilq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
cexpq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
cimagq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
clog10q.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
clogq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
complex.c Revert libquadmath and libssp copyright patches. 2013-02-06 22:03:54 +00:00
conjq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
copysignq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
coshq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
cosq_kernel.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
cosq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
cprojq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
crealq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
csinhq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
csinq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
csqrtq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
ctanhq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
ctanq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
erfq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
exp2q.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
expm1q.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
expq_table.h Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
expq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
fabsq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
fdimq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
finiteq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
floorq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
fmaq.c Update libquadmath fmaq from glibc, fix nanq issues. 2018-11-07 13:49:03 +00:00
fmaxq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
fminq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
fmodq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
frexpq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
hypotq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
ilogbq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
isinfq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
isnanq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
issignalingq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
j0q.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
j1q.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
jnq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
ldexpq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
lgammaq_neg.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
lgammaq_product.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
lgammaq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
llrintq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
llroundq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
log1pq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
log2q.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
log10q.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
logbq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
logq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
lrintq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
lroundq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
modfq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
nanq.c Update libquadmath fmaq from glibc, fix nanq issues. 2018-11-07 13:49:03 +00:00
nearbyintq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
nextafterq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
powq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
rem_pio2q.c re PR libquadmath/65757 (gfortran gives incorrect result for anint with real*16 argument) 2017-07-19 15:12:58 +02:00
remainderq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
remquoq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
rintq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
roundq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
scalblnq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
scalbnq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
signbitq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
sincos_table.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
sincosq_kernel.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
sincosq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
sinhq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
sinq_kernel.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
sinq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
sqrtq.c re PR libquadmath/81848 (Add PowerPC support to libquadmath) 2017-09-01 22:10:57 +00:00
tanhq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
tanq_kernel.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
tanq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
tgammaq_product.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
tgammaq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
truncq.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00
x2y2m1q.c Update most of libquadmath/math/ from glibc, automate update (PR libquadmath/68686). 2018-11-05 23:03:55 +00:00