diff options
author | Gabriel F. T. Gomes <gabriel@inconstante.eti.br> | 2017-09-04 14:34:04 -0300 |
---|---|---|
committer | Gabriel F. T. Gomes <gabriel@inconstante.eti.br> | 2017-09-21 17:37:39 -0300 |
commit | c5c2e667bf834951ea95fc5124da4ef093711ebe (patch) | |
tree | ed57ab53a769264ba7762935ed73fdb53e61d2f7 /sysdeps/ieee754/ldbl-128ibm/e_expl.c | |
parent | e010deb231113e92f5f351315645a8197857dffd (diff) | |
download | glibc-c5c2e667bf834951ea95fc5124da4ef093711ebe.tar glibc-c5c2e667bf834951ea95fc5124da4ef093711ebe.tar.gz glibc-c5c2e667bf834951ea95fc5124da4ef093711ebe.tar.bz2 glibc-c5c2e667bf834951ea95fc5124da4ef093711ebe.zip |
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.
Diffstat (limited to 'sysdeps/ieee754/ldbl-128ibm/e_expl.c')
-rw-r--r-- | sysdeps/ieee754/ldbl-128ibm/e_expl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/ieee754/ldbl-128ibm/e_expl.c b/sysdeps/ieee754/ldbl-128ibm/e_expl.c index 10df6bb7d5..db812e9b82 100644 --- a/sysdeps/ieee754/ldbl-128ibm/e_expl.c +++ b/sysdeps/ieee754/ldbl-128ibm/e_expl.c @@ -69,7 +69,7 @@ #define _Float128 long double #define L(x) x ## L -#include <sysdeps/ieee754/ldbl-128/t_expl.h> +#include "t_expl.h" static const long double C[] = { /* Smallest integer x for which e^x overflows. */ |