ldbl-128ibm: Copy implementations from ldbl-128 instead of including them
commitc5c2e667bf834951ea95fc5124da4ef093711ebe
authorGabriel F. T. Gomes <gabriel@inconstante.eti.br>
Mon, 4 Sep 2017 17:34:04 +0000 (4 14:34 -0300)
committerGabriel F. T. Gomes <gabriel@inconstante.eti.br>
Thu, 21 Sep 2017 20:37:39 +0000 (21 17:37 -0300)
treeed57ab53a769264ba7762935ed73fdb53e61d2f7
parente010deb231113e92f5f351315645a8197857dffd
ldbl-128ibm: Copy implementations from ldbl-128 instead of including them

Some files under sysdeps/ieee754/ldbl-128ibm/ are able to reuse the
implementation in sysdeps/ieee754/ldbl-128/ by defining _Float128 to
long double.  This relied on compiler support for _Float128 being
disabled.  On powerpc, such support was disabled by default, however, it
got enabled by default [1] in GCC 8.

This patch copies the implementations from ldbl-128 to ldbl-128ibm.  The
uses of _Float128 and L() are kept intact in this patch and are replaced
with a script in a subsequent patch.

[1] https://gcc.gnu.org/ml/gcc-patches/2017-08/msg01028.html

Tested for powerpc64 and powerpc64le.

* sysdeps/ieee754/ldbl-128ibm/e_expl.c: Include tables from
sysdeps/ieee754/ldbl-128ibm.
* sysdeps/ieee754/ldbl-128ibm/e_j0l.c: Copy contents from the
equivalent implementation in sysdeps/ieee754/ldbl-128/ instead
of including it.  Keep _Float128 and L() intact.  These will be
reviewed by a separate patch.
* sysdeps/ieee754/ldbl-128ibm/e_j1l.c: Likewise.
* sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c: Likewise.
* sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c: Likewise.
* sysdeps/ieee754/ldbl-128ibm/t_expl.h: Likewise.
ChangeLog
sysdeps/ieee754/ldbl-128ibm/e_expl.c
sysdeps/ieee754/ldbl-128ibm/e_j0l.c
sysdeps/ieee754/ldbl-128ibm/e_j1l.c
sysdeps/ieee754/ldbl-128ibm/e_lgammal_r.c
sysdeps/ieee754/ldbl-128ibm/s_cbrtl.c
sysdeps/ieee754/ldbl-128ibm/t_expl.h [new file with mode: 0644]