1 2019-09-27 Maciej W. Rozycki <macro@wdc.com>
3 * configure: Regenerate.
5 2019-08-02 Jakub Jelinek <jakub@redhat.com>
7 * quadmath.h (M_Eq, M_LOG2Eq, M_LOG10Eq, M_LN2q, M_LN10q, M_PIq,
8 M_PI_2q, M_PI_4q, M_1_PIq, M_2_PIq, M_2_SQRTPIq, M_SQRT2q,
9 M_SQRT1_2q): Use two more decimal places.
11 2019-01-01 Jakub Jelinek <jakub@redhat.com>
13 Update copyright years.
15 * libquadmath.texi: Bump @copying's copyright year.
17 2018-12-11 Jakub Jelinek <jakub@redhat.com>
20 * quadmath_weak.h (__qmath2): Add __quadmath_throw.
22 2018-11-07 Joseph Myers <joseph@codesourcery.com>
24 * quadmath-imp.h (ieee854_float128): Use mantissa0, mantissa1,
25 mantissa2 and mantissa3 fields instead of mant_high and mant_low.
26 Change nan field to ieee_nan.
27 * update-quadmath.py (update_sources): Also update fmaq.c.
28 * math/nanq.c (nanq): Use ieee_nan field of union.
29 Zero-initialize f. Set quiet_nan field.
30 * printf/flt1282mpn.c, printf/printf_fphex.c, strtod/mpn2flt128.c,
31 strtod/strtoflt128.c: Use mantissa0, mantissa1, mantissa2 and
32 mantissa3 fields. Use ieee_nan and quiet_nan field.
33 * math/fmaq.c: Regenerate from glibc sources with
36 2018-11-05 Joseph Myers <joseph@codesourcery.com>
39 * Makefile.am: (libquadmath_la_SOURCES): Remove math/isinf_nsq.c.
40 Add math/exp2q.c math/issignalingq.c math/lgammaq_neg.c
41 math/lgammaq_product.c math/tanq_kernel.c math/tgammaq_product.c
42 math/casinhq_kernel.c.
43 * Makefile.in: Regenerate.
44 * libquadmath.texi (exp2q, issignalingq): Document.
45 * quadmath-imp.h: Include <errno.h>, <limits.h>, <stdbool.h> and
47 (HIGH_ORDER_BIT_IS_SET_FOR_SNAN, FIX_FLT128_LONG_CONVERT_OVERFLOW)
48 (FIX_FLT128_LLONG_CONVERT_OVERFLOW, __quadmath_kernel_tanq)
49 (__quadmath_gamma_productq, __quadmath_gammaq_r)
50 (__quadmath_lgamma_negq, __quadmath_lgamma_productq)
51 (__quadmath_lgammaq_r, __quadmath_kernel_casinhq, mul_splitq)
52 (math_check_force_underflow_complex, __glibc_likely)
53 (__glibc_unlikely, struct rm_ctx, SET_RESTORE_ROUNDF128)
54 (libc_feholdsetround_ctx, libc_feresetround_ctx): New.
55 (feraiseexcept, fenv_t, feholdexcept, fesetround, feupdateenv)
56 (fesetenv, fetestexcept, feclearexcept): Define if not supported
58 (__quadmath_isinf_nsq): Remove.
59 * quadmath.h (exp2q, issignalingq): New.
60 * quadmath.map (QUADMATH_1.2): New.
61 * quadmath_weak.h (exp2q, issignalingq): New.
62 * update-quadmath.py: New file.
63 * math/isinf_nsq.c: Remove file.
64 * math/casinhq_kernel.c, math/exp2q.c, math/expq_table.h,
65 math/issignalingq.c, math/lgammaq_neg.c, math/lgammaq_product.c,
66 math/tanq_kernel.c, math/tgammaq_product.c: New files. Generated
67 from glibc sources with update-quadmath.py.
68 * math/acoshq.c, math/acosq.c, math/asinhq.c, math/asinq.c,
69 math/atan2q.c, math/atanhq.c, math/atanq.c, math/cacoshq.c,
70 math/cacosq.c, math/casinhq.c, math/casinq.c, math/catanhq.c,
71 math/catanq.c, math/cbrtq.c, math/ccoshq.c, math/ceilq.c,
72 math/cexpq.c, math/cimagq.c, math/clog10q.c, math/clogq.c,
73 math/conjq.c, math/copysignq.c, math/coshq.c, math/cosq.c,
74 math/cosq_kernel.c, math/cprojq.c, math/crealq.c, math/csinhq.c,
75 math/csinq.c, math/csqrtq.c, math/ctanhq.c, math/ctanq.c,
76 math/erfq.c, math/expm1q.c, math/expq.c, math/fabsq.c,
77 math/fdimq.c, math/finiteq.c, math/floorq.c, math/fmaxq.c,
78 math/fminq.c, math/fmodq.c, math/frexpq.c, math/hypotq.c,
79 math/ilogbq.c, math/isinfq.c, math/isnanq.c, math/j0q.c,
80 math/j1q.c, math/jnq.c, math/ldexpq.c, math/lgammaq.c,
81 math/llrintq.c, math/llroundq.c, math/log10q.c, math/log1pq.c,
82 math/log2q.c, math/logbq.c, math/logq.c, math/lrintq.c,
83 math/lroundq.c, math/modfq.c, math/nearbyintq.c,
84 math/nextafterq.c, math/powq.c, math/remainderq.c, math/remquoq.c,
85 math/rintq.c, math/roundq.c, math/scalblnq.c, math/scalbnq.c,
86 math/signbitq.c, math/sincos_table.c, math/sincosq.c,
87 math/sincosq_kernel.c, math/sinhq.c, math/sinq.c,
88 math/sinq_kernel.c, math/tanhq.c, math/tanq.c, math/tgammaq.c,
89 math/truncq.c, math/x2y2m1q.c: Regenerate from glibc sources with
92 2018-10-31 Joseph Myers <joseph@codesourcery.com>
95 * Makefile.am: Include multilib.am.
96 (AUTOMAKE_OPTIONS): Remove 1.8. Add info-in-builddir.
97 (all-local): Define outside conditional code.
98 (CLEANFILES): Remove libquadmath.info.
99 * configure.ac: Remove AC_PREREQ.
100 * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
102 2018-04-24 H.J. Lu <hongjiu.lu@intel.com>
104 * configure: Regenerated.
106 2018-04-19 Jakub Jelinek <jakub@redhat.com>
108 * configure: Regenerated.
110 2018-04-18 David Malcolm <dmalcolm@redhat.com>
113 * configure: Regenerate.
115 2018-02-14 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
118 * configure: Regenerate.
120 2018-01-03 Jakub Jelinek <jakub@redhat.com>
122 * libquadmath.texi: Bump @copying's copyright year.
124 2017-11-17 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
126 * Makefile.am: Update AM_CFLAGS.
127 * Makefile.in: Regenerate:
128 * acinclude.m4: Add enable.m4 and cet.m4.
129 * configure: Regenerate.
130 * configure.ac: Set CET_FLAGS. Update XCFLAGS.
132 2017-11-05 Tom de Vries <tom@codesourcery.com>
135 * printf/gmp-impl.h (MPN_MUL_N_RECURSE): Remove semicolon after
138 2017-09-01 Michael Meissner <meissner@linux.vnet.ibm.com>
141 * configure.ac (powerpc*-linux*): Use attribute mode KC to create
142 complex __float128 on PowerPC instead of attribute mode TC.
143 * quadmath.h (__complex128): Likewise.
144 * configure: Regenerate.
145 * math/cbrtq.c (CBRT2): Use __float128 not long double.
149 * math/j0q.c (U0): Likewise.
150 * math/sqrtq.c (sqrtq): Don't depend on implicit conversion
151 between __float128, instead explicitly convert the __float128
152 value to long double because the PowerPC does not allow __float128
153 and long double in the same expression.
155 2017-07-19 Gerald Pfeifer <gerald@pfeifer.com>
157 * math/powq.c (powq): Use uint32_t instead of u_int32_t.
159 2017-07-19 Jakub Jelinek <jakub@redhat.com>
162 * quadmath-imp.h (math_opt_barrier, math_force_eval,
163 math_narrow_eval, math_check_force_underflow,
164 math_check_force_underflow_nonneg): Define.
165 * math/ceilq.c: Backport changes from upstream glibc
166 between 2012-11-01 and 2017-07-13.
167 * math/remquoq.c: Likewise.
168 * math/expq.c: Likewise.
169 * math/llroundq.c: Likewise.
170 * math/logq.c: Likewise.
171 * math/atanq.c: Likewise.
172 * math/nearbyintq.c: Likewise.
173 * math/scalblnq.c: Likewise.
174 * math/finiteq.c: Likewise.
175 * math/atanhq.c: Likewise.
176 * math/expm1q.c: Likewise.
177 * math/sinhq.c: Likewise.
178 * math/log10q.c: Likewise.
179 * math/rintq.c: Likewise.
180 * math/roundq.c: Likewise.
181 * math/fmaq.c: Likewise.
182 * math/erfq.c: Likewise.
183 * math/log2q.c: Likewise.
184 * math/lroundq.c: Likewise.
185 * math/j1q.c: Likewise.
186 * math/scalbnq.c: Likewise.
187 * math/truncq.c: Likewise.
188 * math/frexpq.c: Likewise.
189 * math/sincosq.c: Likewise.
190 * math/tanhq.c: Likewise.
191 * math/asinq.c: Likewise.
192 * math/coshq.c: Likewise.
193 * math/j0q.c: Likewise.
194 * math/asinhq.c: Likewise.
195 * math/floorq.c: Likewise.
196 * math/sinq_kernel.c: Likewise.
197 * math/powq.c: Likewise.
198 * math/hypotq.c: Likewise.
199 * math/sincos_table.c: Likewise.
200 * math/rem_pio2q.c: Likewise.
201 * math/nextafterq.c: Likewise.
202 * math/log1pq.c: Likewise.
203 * math/sincosq_kernel.c: Likewise.
204 * math/tanq.c: Likewise.
205 * math/acosq.c: Likewise.
206 * math/lrintq.c: Likewise.
207 * math/llrintq.c: Likewise.
209 2017-02-09 Gerald Pfeifer <gerald@pfeifer.com>
211 * configure.ac (ACX_BUGURL): Update.
212 * configure: Regenerate.
214 2017-01-17 Jakub Jelinek <jakub@redhat.com>
217 * configure.ac: Add GCC_BASE_VER.
218 * Makefile.am (gcc_version): Use @get_gcc_base_ver@ instead of cat to
219 get version from BASE-VER file.
220 * configure: Regenerated.
221 * Makefile.in: Regenerated.
223 2017-01-01 Jakub Jelinek <jakub@redhat.com>
225 * libquadmath.texi: Bump @copying's copyright year.
227 2016-11-15 Matthias Klose <doko@ubuntu.com>
229 * configure: Regenerate.
231 2016-01-04 Jakub Jelinek <jakub@redhat.com>
233 * libquadmath.texi: Bump @copying's copyright year.
235 2015-08-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
237 * Makefile.am (libquadmath_la_SOURCES): Add matha/logbq.c.
238 * Makefile.in: Regenerate.
239 * libquadmath.texi: Document logbq.
240 * quadmath.h: Add logbq prototype.
241 * quadmath.map: Add logbq.
242 * quadmath_weak.h: Add logbq prototype.
243 * math/logbq.c: New file
245 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
247 * Makefile.in: Regenerated with automake-1.11.6.
248 * aclocal.m4: Likewise.
249 * configure: Likewise.
251 2015-01-26 Matthias Klose <doko@ubuntu.com>
253 * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
254 * configure: Regenerate.
256 2015-01-05 Jakub Jelinek <jakub@redhat.com>
258 * libquadmath.texi: Bump @copying's copyright year.
260 2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
263 * configure: Regenerated.
265 2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
268 * configure: Regenerate.
270 2014-10-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
273 * Makefile.am: Unconditionally define libquadmath_TEXINFOS.
274 * Makefile.in: Regenerate.
276 2014-10-09 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
279 * Makefile.am: Conditionally define info_TEXINFOS and
280 libquadmath_TEXINFOS.
281 * Makefile.in: Regenerate.
283 2014-10-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
286 * libquadmath.texi (sincosq): Fix typo.
288 2014-01-02 Tobias Burnus <burnus@net-b.de>
290 * libquadmath.texi: Bump @copying's copyright year.
292 2013-12-04 Richard Sandiford <rdsandiford@googlemail.com>
294 * Makefile.am (AM_CPPFLAGS): Define.
295 * Makefile.in: Regenerate.
296 * printf/gmp-impl.h: Remove path from longlong.h include.
298 2013-09-20 Alan Modra <amodra@gmail.com>
300 * configure: Regenerate.
302 2013-03-06 Shakthi Kannan <shakthimaan@gmail.com>
305 * quadmath.h: Add 'extern "C"' block for C++ use.
307 2013-02-19 Jakub Jelinek <jakub@redhat.com>
310 * strtod/strtod_l.c (mpn_lshift_1): Rewritten as function-like
313 2013-02-17 Tobias Burnus <burnus@net-b.de>
315 * math/cacoshq.c (cacoshq): Call signbitq instead of signbit.
317 2013-02-06 Richard Sandiford <rdsandiford@googlemail.com>
319 Revert previous patch.
321 2013-02-03 Richard Sandiford <rdsandiford@googlemail.com>
323 Update copyright years.
325 2013-01-22 Jakub Jelinek <jakub@redhat.com>
328 * libquadmath.texi (M_PI_2q, M_PI_4q): Fix up description.
330 2012-12-13 Jakub Jelinek <jakub@redhat.com>
332 * math/cbrtq.c (cbrtq): Use Q suffixed floating point constants
333 instead of L suffixed ones.
334 * math/fmaq.c (fmaq): Likewise.
335 * math/rintq.c (TWO112): Likewise.
337 2012-12-03 Tobias Burnus <burnus@net-b.de>
339 * strtod/strtod_l.c (___STRTOF_INTERNAL): Fix exponent
342 2012-11-25 Tobias Burnus <burnus@net-b.de>
345 * strtod/strtod_l.c (round_and_return): Use HAVE_FENV_H
346 instead of nonexisting HAVE_GET_ROUNDING_MODE.
348 2012-11-23 H.J. Lu <hongjiu.lu@intel.com>
351 * quadmath-rounding-mode.h (get_rounding_mode): Don't pass
354 2012-11-23 Tobias Burnus <burnus@net-b.de>
355 Joseph Myers <joseph@codesourcery.com>
357 * quadmath-rounding-mode.h: New.
358 * printf/fpioconst.c: Update from GLIBC. Fix strtod rounding.
359 * printf/fpioconst.h: Ditto.
360 * printf/printf_fp.c (__quadmath_printf_fp): Update from GLIBC.
361 Make printf respect the rounding mode for decimal output.
362 * printf/printf_fphex.c (__quadmath_printf_fphex): Update from
363 GLIBC. Make printf respect the rounding mode for hex output.
364 * strtod/strtod_l.c: Update from GLIBC. Make strtod respect the
365 rounding mode. Fix strtod handling of underflow.
367 2012-11-22 David S. Miller <davem@davemloft.net>
368 Tobias Burnus <burnus@net-b.de>
369 Joseph Myers <joseph@codesourcery.com>
371 * math/atanq.c (atanq): Update from GLIBC. Handle tiny and
372 very large arguments properly.
373 * math/j0q.c (y0q): Update from GLIBC. Avoid arithmetic
374 underflow when 'x' is very small.
375 * math/j1q.c (y1q): Ditto.
376 * math/log1pq.c (log1pq): Update from GLIBC. Saturate
377 nonzero exponents with absolute value below 0x1p-128 to
379 * math/powq.c (powq): Update from GLIBC. If xm1 is
380 smaller than LDBL_EPSILON/2.0L, just return xm1.
382 2012-11-21 Tobias Burnus <burnus@net-b.de>
385 * math/lgammaq.c (lgammaq): Use local variable if
386 math.h does not provide signgam.
387 * acinclude.m4 (LIBQUAD_CHECK_MATH_H_SIGNGAM): New check.
388 * configure.ac: Use it.
389 * configure: Regenerate.
390 * config.h.in: Regenerate.
392 2012-11-15 Tobias Burnus <burnus@net-b.de>
393 Joseph Myers <joseph@codesourcery.com>
395 * math/fmaq.c (fmaq): Merge from GLIBC. Fix fma
396 underflows with small x * y; Fix overflow results
397 outside round-to-nearest mode; make use of Dekker
398 and Knuth algorithms use round-to-nearest.
400 2012-11-01 Tobias Burnus <burnus@net-b.de>
402 * math/fmaq.c (fmaq): Fix build.
404 2012-11-01 Tobias Burnus <burnus@net-b.de>
405 Joseph Myers <joseph@codesourcery.com>
407 * math/fmaq.c (fmaq): Merge from GLIBC. Handle cases
408 with small x * y using scaling, not as x * y + z.
409 * math/lgammaq.c (lgammaq): Fix signgam handling.
411 2012-11-01 Tobias Burnus <burnus@net-b.de>
413 * Makefile.am (libquadmath_la_SOURCES): Add new math/* files.
414 * Makefile.in: Regenerated.
415 * math/acoshq.c: Update comment.
416 * math/acosq.c: Ditto.
417 * math/asinhq.c: Ditto.
418 * math/asinq.c: Ditto.
419 * math/atan2q.c: Ditto.
420 * math/atanhq.c: Ditto.
421 * math/ceilq.c: Ditto.
422 * math/copysignq.c: Ditto.
423 * math/cosq.c: Ditto.
424 * math/coshq.c: Ditto.
425 * math/erfq.c: Ditto.
426 * math/fabsq.c: Ditto.
427 * math/finiteq.c: Ditto.
428 * math/floorq.c: Ditto.
429 * math/fmodq.c: Ditto.
430 * math/frexpq.c: Ditto.
431 * math/isnanq.c: Ditto.
434 * math/ldexpq.c: Ditto.
435 * math/llroundq.c: Ditto.
436 * math/log10q.c: Ditto.
437 * math/log1pq.c: Ditto.
438 * math/log2q.c: Ditto.
439 * math/logq.c: Ditto.
440 * math/lroundq.c: Ditto.
441 * math/modfq.c: Ditto.
442 * math/nextafterq.c: Ditto.
443 * math/powq.c: Ditto.
444 * math/rem_pio2q.c: Ditto.
445 * math/remainderq.c: Ditto.
446 * math/rintq.c: Ditto.
447 * math/roundq.c: Ditto.
448 * math/scalblnq.c: Ditto.
449 * math/scalbnq.c: Ditto.
450 * math/sincosq_kernel.c: Ditto.
451 * math/sinq.c: Ditto.
452 * math/tanq.c: Ditto.
453 * math/expq.c: Ditto.
454 (__expq_table, expq): Renamed local array from __expl_table.
455 * math/cosq_kernel.c (__quadmath_kernel_cosq): Fix sign handling.
456 * math/cacoshq.c: Changes from GLIBC; fix returned sign.
457 * math/casinhq.c: Changes from GLIBC to fix special-case.
458 * math/cbrtq.c: Use modified GLIBC version.
459 * math/complex.c (ccoshd, cexpq, clog10q, clogq, csinhq, csinq,
460 ctanhq, ctanq): Moved to separates files.
461 (mult_c128, div_c128): Removed no longer needed functions.
462 (cexpiq): Call sincosq instead of sinq and cosq.
463 (cosq): Call cosh(-re,im) instead of cosq/sinq/sinh/cosh.
464 * math/ccoshq.c (ccoshq): New file, moved from complex.c and
465 modified based on GLIBC.
466 * math/cexpq.c (cexp): Ditto.
467 * math/clog10q.c (clog10q): Ditto.
468 * math/clogq.c (clogq): Ditto.
469 * math/csinhq.c: Ditto.
470 * math/csinq.c: Ditto.
471 * math/csqrtq.c: Ditto.
472 * math/ctanhq.c: Ditto.
473 * math/ctanq.c: Ditto.
474 * math/fmaq.c (fmaq): Port TININESS_AFTER_ROUNDING handling
476 * math/ilogbq.c (ilogbq): Add errno = EDOM handling.
477 * math/isinf_nsq.c (__quadmath_isinf_nsq): New file, ported
479 * math/lgammaq.c (lgammaq): Add signgam handling.
480 * math/sinhq.c (sinhq): Fix sign handling.
481 * math/sinq_kernel.c (__quadmath_kernel_sinq): Ditto.
482 * math/tgammaq.c (tgammaq): Ditto.
483 * math/x2y2m1q.c: New file.
484 * quadmath-imp.h (TININESS_AFTER_ROUNDING): New define.
485 (__quadmath_x2y2m1q, __quadmath_isinf_nsq): New prototypes.
487 2012-10-31 Tobias Burnus <burnus@net-b.de>
488 Joseph Myers <joseph@codesourcery.com>
489 David S. Miller <davem@davemloft.net>
490 Ulrich Drepper <drepper@redhat.com>
491 Marek Polacek <polacek@redhat.com>:
492 Petr Baudis <pasky@suse.cz>
494 * math/complex.c (csqrtq): NaN and INF fixes.
495 * math/sqrtq.c (sqrt): NaN, INF and < 0 fixes.
496 * math/expm1q.c (expm1q): Changes from GLIBC. Use expq for
497 large parameters. Fix errno for boundary conditions.
498 * math/finiteq.c (finiteq): Add comment.
499 * math/fmaq.c (fmaq): Changes from GLIBC. Fix missing underflows
500 and bad results for some subnormal results. Fix sign of inexact
501 zero return. Fix sign of exact zero return.
502 Ensure additions are not scheduled after fetestexcept.
503 * math/jnq.c (jnq): Changes from GLIBC. Set up errno properly
504 for ynq. Fix jnq precision.
505 * math/nearbyintq.c (nearbyintq): Changes from GLIBC. Do not
506 manipulate bits before adding and subtracting TWO112[sx].
507 * math/rintq.c (rintq): Ditto.
508 * math/scalbnq.c (scalbnq): Changes from GLIBC. Fix integer
511 2012-09-14 David Edelsohn <dje.gcc@gmail.com>
513 * configure: Regenerated.
515 2012-05-29 Benjamin Kosnik <bkoz@redhat.com>
518 * configure.ac: Allow gnu, gnu* variants for --enable-symvers argument.
519 * configure: Regenerated.
521 2012-05-16 H.J. Lu <hongjiu.lu@intel.com>
523 * configure: Regenerated.
525 2011-11-21 Andreas Tobler <andreast@fgznet.ch>
527 * configure: Regenerate.
529 2011-11-07 Kai Tietz <ktietz@redhat.com>
532 * quadmath-imp.h (ieee854_float128): Adjust
533 for ms-bitfield layout.
535 2011-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
537 * printf/gmp-impl.h: Adapt path to longlong.h.
539 2011-09-21 Joseph Myers <joseph@codesourcery.com>
541 * Makefile.am (FLAGS_TO_PASS): Define.
542 * Makefile.in: Regenerate.
544 2011-08-01 Jakub Jelinek <jakub@redhat.com>
546 * math/rem_pio2q.c (__quadmath_kernel_rem_pio2): Fix up fq to y
547 conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
549 2011-04-03 Tobias Burnus <burnus@net-b.de>
552 * libquadmath.texi (strtoflt128): Fix typo.
553 (quadmath_snprintf): Move note up, make @item.
555 2011-03-25 Jakub Jelinek <jakub@redhat.com>
557 * printf/printf_fp.c (__quadmath_printf_fp): Use memcpy instead of
560 2011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
563 * configure.ac (quadmath_use_symver): Handle --disable-symvers.
564 * configure: Regenerate.
566 2011-02-28 Jakub Jelinek <jakub@redhat.com>
568 * printf/quadmath-printf.c (quadmath_snprintf): Make sure
569 that for size > 0 str is always zero terminated.
571 2011-02-20 Jakub Jelinek <jakub@redhat.com>
574 * printf/quadmath-printf.h (NAN): Redefine to __builtin_nanf ("").
576 2011-02-17 Jakub Jelinek <jakub@redhat.com>
578 * libquadmath.texi (FLT128_DIG, FLT128_MIN_10_EXP,
579 FLT128_MAX_10_EXP): Document.
580 (strtoflt128): Remove obsolete comment.
581 * configure.ac (HAVE_STRTOULL): New check.
582 * printf/gmp-impl.h (mpn_construct_float128): New prototype,
584 * printf/mul_n.c: Include <config.h>.
585 * printf/add_n.c: Likewise.
586 * printf/cmp.c: Likewise.
587 * printf/fpioconst.c: Likewise.
588 * printf/mul_1.c: Likewise.
589 * printf/rshift.c: Likewise.
590 * printf/lshift.c: Likewise.
591 * printf/submul_1.c: Likewise.
592 * printf/sub_n.c: Likewise.
593 * printf/divrem.c: Likewise.
594 * printf/addmul_1.c: Likewise.
595 * printf/mul.c: Likewise.
596 * printf/quadmath-printf.h (isupper, isdigit, tolower): Change
597 to avoid evaluating argument multiple times.
598 (isxdigit): Redefine.
599 * strtod/strtoflt128.c: New file.
600 * strtod/strtod_l.c: New file.
601 * strtod/mpn2flt128.c: New file.
602 * strtod/grouping.h: New file.
603 * strtod/tens_in_limb.c: New file.
604 * gdtoa/arith.h: Removed.
605 * gdtoa/gd_qnan.h: Removed.
606 * gdtoa/gdtoa_fltrnds.h: Removed.
607 * gdtoa/gdtoa.h: Removed.
608 * gdtoa/gdtoaimp.h: Removed.
609 * gdtoa/gethex.c: Removed.
610 * gdtoa/gmisc.c: Removed.
611 * gdtoa/hd_init.c: Removed.
612 * gdtoa/hexnan.c: Removed.
613 * gdtoa/makefile: Removed.
614 * gdtoa/misc.c: Removed.
615 * gdtoa/README.gdtoa: Removed.
616 * gdtoa/smisc.c: Removed.
617 * gdtoa/strtodg.c: Removed.
618 * gdtoa/strtopQ.c: Removed.
619 * gdtoa/sum.c: Removed.
620 * quadmath.h (FLT128_DIG, FLT128_MIN_10_EXP, FLT128_MAX_10_EXP):
622 * Makefile.am (libquadmath_la_SOURCES): Remove gdtoa/*, add
623 strtod/strtoflt128.c, strtod/mpn2flt128.c and strtod/tens_in_limb.c.
624 * config.h.in: Regenerated.
625 * configure: Regenerated.
626 * Makefile.in: Regenerated.
628 2011-02-16 Jakub Jelinek <jakub@redhat.com>
630 * printf/quadmath-printf.c: Also check __GLIBC__ when checking
631 whether workarounds for printf hook handling should be added.
633 * configure.ac: Check for locale.h too.
634 (USE_LOCALE_SUPPORT): Remove check.
635 (USE_NL_LANGINFO, USE_NL_LANGINFO_WC, USE_LOCALECONV): New checks.
636 (USE_I18_NUMBER_H): Check also for _NL_CTYPE_MB_CUR_MAX.
637 * printf/printf_fphex.c (__quadmath_printf_fphex): Use nl_langinfo
638 or localeconv for narrow version and nl_langinfo if USE_NL_LANGINFO_WC
640 * printf/quadmath-printf.h: Include locale.h if HAVE_LOCALE_H.
641 * printf/printf_fp.c (USE_I18N_NUMBER_H): Don't define to 0.
642 (__quadmath_printf_fp): Use nl_langinfo or localeconv for narrow
643 version and nl_langinfo if USE_NL_LANGINFO_WC for wide version.
644 Guard nl_langinfo (_NL_CTYPE_MB_CUR_MAX) use with
645 USE_I18N_NUMBER_H #ifdef.
646 * configure: Regenerated.
647 * config.h.in: Regenerated.
649 2011-02-14 Jakub Jelinek <jakub@redhat.com>
652 * configure.ac (HAVE_PRINTF_HOOKS): Test if printf_info struct has
654 * printf/quadmath-printf.c (quadmath_snprintf): Clear whole info
655 field instead of setting individual fields to 0. Don't set info.user
657 * configure: Regenerated.
659 * configure.ac (HAVE_HIDDEN_VISIBILITY): Test with -Werror in CFLAGS.
660 * printf/printf_fp.c: Don't include <alloca.h>.
661 * printf/quadmath-printf.h (_itoa): Redefine to __quadmath_itoa.
662 * configure: Regenerated.
665 * libquadmath.texi (quadmath_snprintf): Document.
666 (quadmath_flt128tostr): Remove.
667 * Makefile.am (libquadmath_la_SOURCES): Add printf/*.c.
668 Remove quadmath_io.c, gdtoa/gdtoa.c, gdtoa/g__fmt.c,
669 gdtoa/g_Qfmt.c, gdtoa/dmisc.c and gdtoa/ulp.c.
670 * quadmath.h (quadmath_snprintf): New prototype.
671 (quadmath_flt128tostr): Remove.
672 * quadmath_weak.h (quadmath_snprintf): Add.
673 (quadmath_flt128tostr): Remove.
674 * configure.ac: New AC_CHECK_HEADERS headers: langinfo.h, wchar.h,
675 wctype.h, limits.h, ctype.h, printf.h, errno.h.
676 (AC_USE_SYSTEM_EXTENSIONS): Add.
677 (HAVE_HIDDEN_VISIBILITY, HAVE_PRINTF_HOOKS,
678 USE_LOCALE_SUPPORT, USE_I18N_NUMBER_H): New checks.
679 * quadmath.map (QUADMATH_1.0): Add quadmath_snprintf. Remove
680 quadmath_flt128tostr.
681 * printf/printf_fphex.c: New file.
682 * printf/_itowa.h: New file.
683 * printf/mul_n.c: New file.
684 * printf/quadmath-printf.h: New file.
685 * printf/submul_1.c: New file.
686 * printf/quadmath-printf.c: New file.
687 * printf/gmp-impl.h: New file.
688 * printf/lshift.c: New file.
689 * printf/fpioconst.h: New file.
690 * printf/add_n.c: New file.
691 * printf/cmp.c: New file.
692 * printf/sub_n.c: New file.
693 * printf/mul.c: New file.
694 * printf/divrem.c: New file.
695 * printf/addmul_1.c: New file.
696 * printf/printf_fp.c: New file.
697 * printf/_itoa.h: New file.
698 * printf/fpioconst.c: New file.
699 * printf/_i18n_number.h: New file.
700 * printf/flt1282mpn.c: New file.
701 * printf/rshift.c: New file.
702 * printf/mul_1.c: New file.
703 * quadmath_io.c: Removed.
704 * gdtoa/gdtoa.c: Removed.
705 * gdtoa/g__fmt.c: Removed.
706 * gdtoa/g_Qfmt.c: Removed.
707 * gdtoa/dmisc.c: Removed.
708 * gdtoa/ulp.c: Removed.
709 * config.h.in: Regenerated.
710 * configure: Regenerated.
711 * Makefile.in: Regenerated.
713 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
715 * Makefile.in: Regenerate.
716 * aclocal.m4: Likewise.
717 * configure: Likewise.
719 2011-01-31 Jerry DeLisle <jvdelisle@gcc.gnu.org>
722 * gdtoa/qd_qnan.h: Fix NAN bit patterns.
723 * gdtoa/strtopQ.c (strtoflt128): Handle endianess with NAN.
725 2011-01-17 Tobias Burnus <burnus@net-b.de>
728 * libquadmath.text: Document typedef and constants.
730 2011-01-17 Tobias Burnus <burnus@net-b.de>
733 * quadmath-imp.h: Refer to libquadmath not ot libiberty,
734 bump copyright year and use /**/ instead of // comments.
736 * quadmath-weak.h: Ditto.
737 * quadmath_io.c: Ditto.
739 2011-01-16 Jakub Jelinek <jakub@redhat.com>
742 * math/remquoq.c (remquoq): Use uint64_t type instead of u_int64_t.
745 * quadmath.map (QUADMATH_1.0): Remove quadmath_strtopQ
746 and quadmath_dtoaq. Add strtoflt128 and quadmath_flt128tostr.
747 * quadmath_weak.h (quadmath_strtopQ, quadmath_dtoaq): Remove.
748 (strtoflt128, quadmath_flt128tostr): Add.
749 * gdtoa/strtopQ.c (quadmath_strtopQ): Rename to...
750 (strtoflt128): ... this. Return __float128, instead of writing
751 to memory pointed by last argument.
752 * quadmath.h: Use C style comments instead of C++ style.
753 (quadmath_strtopQ, quadmath_dtoaq): Remove prototypes.
754 (strtoflt128, quadmath_flt128tostr): Add prototypes.
755 * libquadmath.texi (quadmath_dtoaq): Rename to quadmath_flt128tostr.
756 (quadmath_strtopQ): Rename to strtoflt128. Adjust prototype,
758 * quadmath_io.c (quadmath_dtoaq): Rename to...
759 (quadmath_flt128tostr): ... this.
761 * quadmath.h (__quadmath_throw, __quadmath_nth): Define.
762 Use it for all prototypes.
765 * quadmath.h (cbrtq, finiteq, isnanq, signbitq, sqrtq): Remove
766 const from prototype argument.
767 (cimagq, conjq, cprojq, crealq, fdimq, fmaxq, fminq, ilogbq,
768 llrintq, log2q, lrintq, nearbyintq, remquoq): New prototypes.
769 (__quadmath_extern_inline): Define.
770 (cimagq, conjq, crealq): New inlines.
771 * Makefile.am (libquadmath_la_SOURCES): Add math/cimagq.c,
772 math/conjq.c, math/cprojq.c, math/crealq.c, math/fdimq.c,
773 math/fmaxq.c, math/fminq.c, math/ilogbq.c, math/llrintq.c,
774 math/log2q.c, math/lrintq.c, math/nearbyintq.c and math/remquoq.c.
775 * Makefile.in: Regenerated.
776 * quadmath_weak.h (cimagq, conjq, cprojq, crealq, fdimq, fmaxq,
777 fminq, ilogbq, llrintq, log2q, lrintq, nearbyintq, remquoq): Add.
778 * quadmath-imp.h (__LITTLE_ENDIAN__): Don't define.
779 (ieee854_float128): Use __BYTE_ORDER == __ORDER_BIG_ENDIAN__
780 tests instead of __BIG_ENDIAN__.
781 * quadmath.map (QUADMATH_1.0): Add cimagq, conjq, cprojq, crealq,
782 fdimq, fmaxq, fminq, ilogbq, llrintq, log2q, lrintq, nearbyintq
784 * libquadmath.texi (cimagq, conjq, cprojq, crealq, fdimq, fmaxq,
785 fminq, ilogbq, llrintq, log2q, lrintq, nearbyintq, remquoq): Add.
786 * math/cprojq.c: New file.
787 * math/ilogbq.c: New file.
788 * math/fminq.c: New file.
789 * math/llrintq.c: New file.
790 * math/log2q.c: New file.
791 * math/lrintq.c: New file.
792 * math/crealq.c: New file.
793 * math/nearbyintq.c: New file.
794 * math/fmaxq.c: New file.
795 * math/conjq.c: New file.
796 * math/remquoq.c: New file.
797 * math/cimagq.c: New file.
798 * math/fdimq.c: New file.
800 * math/ldexpq.c: Include errno.h. Set errno to ERANGE if needed.
803 * quadmath.h (cacosq, cacoshq, casinq, casinhq, catanq, catanhq):
805 (M_Eq, M_LOG2Eq, M_LOG10Eq, M_LN2q, M_LN10q, M_PIq, M_PI_2q, M_PI_4q,
806 M_1_PIq, M_2_PIq, M_2_SQRTPIq, M_SQRT2q, M_SQRT1_2q): Define.
807 * quadmath_weak.h (cacosq, cacoshq, casinq, casinhq, catanq,
809 * quadmath-imp.h (fpclassifyq, QUADFP_NAN, QUADFP_INFINITE,
810 QUADFP_ZERO, QUADFP_SUBNORMAL, QUADFP_NORMAL): Define.
811 * quadmath.map (QUADMATH_1.0): Add cacosq, cacoshq, casinq, casinhq,
813 * Makefile.am (libquadmath_la_SOURCES): Add math/cacosq.c,
814 math/cacoshq.c, math/casinq.c, math/casinhq.c, math/catanq.c
816 * Makefile.in: Regenerated.
817 * libquadmath.texi (cacosq, cacoshq, casinq, casinhq,
818 catanq, catanhq): Add.
819 * math/cacoshq.c: New file.
820 * math/cacosq.c: New file.
821 * math/catanq.c: New file.
822 * math/catanhq.c: New file.
823 * math/casinq.c: New file.
824 * math/casinhq.c: New file.
826 * math/hypotq.c (hypotq): Use Q suffix instead of L.
827 * math/atan2q.c (tiny, pi_o_4, pi_o_2, pi, pi_lo, atan2q): Likewise.
828 * math/cosq.c (cosq): Likewise.
831 * quadmath.map (QUADMATH_1.0): Add fmaq.
832 * configure.ac: Check for fenv.h, feholdexcept, fesetround,
833 feupdateenv, fesetenv and fetestexcept.
834 * configure: Regenerated.
835 * config.h.in: Regenerated.
836 * quadmath.h (fmaq): New prototype.
837 * quadmath_weak.h (fmaq): Add.
838 * Makefile.am (libquadmath_la_SOURCES): Add math/fmaq.c.
839 * Makefile.in: Regenerated.
840 * quadmath-imp.h: Include config.h.
841 * math/expq.c: Include fenv.h.
842 (USE_FENV_H): Define if libm support for fe* is there.
843 (expq): Add fesetround etc. support if USE_FENV_H is defined.
844 * math/fmaq.c: New file.
845 * libquadmath.texi (fmaq): Add.
847 2011-01-14 Tobias Burnus <burnus@net-b.de>
850 * configure.ac: Use ACX_BUGURL.
851 * libquadmath.texi: Include libquadmath-vers.texi for BUGURL.
852 * Makefile.am: Create libquadmath-vers.texi.
853 * configure.in: Regenerate.
854 * Makefile.in: Regenerate.
856 2011-01-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
859 * Makefile.am (libquadmath.info): Unconditionally override
860 target, not only if BUILD_LIBQUADMATH.
861 * Makefile.in: Regenerate.
862 * configure.ac (AM_INIT_AUTOMAKE): Add -Wno-override option to
863 avoid warning from automake.
865 2010-12-19 Tobias Burnus <burnus@net-b.de>
868 * configure.ac: Do not call AC_CHECK_LIB for gcc_no_link.
869 * configure: Regenerate
871 2010-12-13 Tobias Burnus <burnus@net-b.de>
874 * gdtoa/gdtoaimp.h: Mangle internal functions by
875 prefixing them with __quadmath. Don't use gdtoa's strcp(y).
876 * gdtoa/g_Qfmt.c (g_Qfmt): Use strcpy instead of strcp.
877 * gdtoa/misc.c (strcpy): Renamed from strcp and only use
878 if NO_STRING_H is set.
879 * quadmath-imp.h (__quadmath_rem_pio2q, __quadmath_kernel_sincosq
880 __quadmath_kernel_sinq, __quadmath_kernel_cosq): Added
881 __quadmath prefix to internal functions.
882 * math/cosq.c (cosq): Ditto.
883 * math/sinq.c (cosq): Ditto.
884 * math/tanq.c (tanq,__quadmath_kernel_tanq): Ditto.
885 * math/rem_pio2q.c (rem_pio2, __quadmath_kernel_rem_pio2): Ditto.
886 * math/sinq_kernel.c (__quadmath_kernel_sinq): Ditto.
887 * math/cosq_kernel.c (__quadmath_kernel_cosq): Ditto.
889 2010-12-08 Tobias Burnus <burnus@net-b.de>
892 * gdtoa/gdtoa.h: Include stdlib.h instead of declare strtod.
893 * gdtoa/gdtoaimp.h: Don't declare strtod.
895 2010-12-08 Tobias Burnus <burnus@net-b.de>
898 * configure.ac: Use GCC_TRY_COMPILE_OR_LINK instead of
899 AC_TRY_LINK and cache libquad_have_float128.
900 * configure: Regenerate.
902 2010-12-08 Tobias Burnus <burnus@net-b.de>
905 * configure.ac: Add texinfo checks.
906 * Makefile.am: Handle .texi documentation.
907 * libquadmath.texi: New.
908 * configure: Regenerated.
909 * Makefile.in: Regenerated.
911 2010-12-06 Tobias Burnus <burnus@net-b.de>
914 * quadmath-imp.h: Add LGPL header.
915 * quadmath.h: Add LGPL header.
916 * quadmath_io.c: Add LGPL header.
917 * quadmath_weak.h: Add LGPL header.
919 2010-12-06 Dave Korn <dave.korn.cygwin@gmail.com>
923 * configure.ac: Invoke ACX_LT_HOST_FLAGS.
924 * Makefile.am (libquadmath_la_LDFLAGS): Use lt_host_flags.
925 * aclocal.m4: Regenerate.
926 * configure: Regenerate.
927 * Makefile.in: Regenerate.
929 2010-11-30 Tobias Burnus <burnus@net-b.de>
932 * Makefile.am: Install include files in
933 target/version specific directory.
934 * Makefile.in: Regenerate.
936 2010-11-30 Tobias Burnus <burnus@net-b.de>
938 * acinclude.m4 (LIBGOMP_CHECK_SYNC_BUILTINS,
939 LIBGOMP_CHECK_ATTRIBUTE_VISIBILITY,
940 LIBGOMP_CHECK_ATTRIBUTE_DLLEXPORT): Remove.
942 2010-11-29 Kai Tietz <kai.tietz@onevision.com>
944 * configure: Regenerated.
945 * Makefile.in: Regenerated.
946 * configure.ac (ACX_NONCANONICAL_TARGET): Call it.
947 (target_alias): Use AC_SUBST for it.
948 (GCC_NO_EXECUTABLES): Call it.
949 (AC_PROG_CC): Improve multilib handling.
950 Check that gcc is used for compilation.
951 Use pattern from libssp for symbol versioning checking.
952 * Makefile.am (LTLDFLAGS): Removed.
953 (libquadmath_la_LDFLAGS): Add -no-undefined.
954 (libquadmath_la_LINK): Commented out.
955 (libquadmath_la_DEPENDENCIES): Add libquadmath_la_LIBADD.
956 (AM_MAKEFLAGS): Add hack for argument passing by top-level.
957 (MAKEOVERRIDES): New.
958 * aclocal.m4: Regenerated.
960 2010-11-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
962 * Makefile.am (libquadmath_la_LIBADD): Move -lm ...
963 (libquadmath_la_LDFLAGS): ... here.
964 (quadmath.map-sun): Tabify.
966 * Makefile.in: Regenerate.
968 2010-11-16 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
969 Tobias Burnus <burnus@net-b.de>
972 Initial implementation and checkin.
974 Copyright (C) 2010-2018 Free Software Foundation, Inc.
976 Copying and distribution of this file, with or without modification,
977 are permitted in any medium without royalty provided the copyright
978 notice and this notice are preserved.