From patchwork Wed Jun 6 22:39:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tulio Magno Quites Machado Filho X-Patchwork-Id: 926062 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=sourceware.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=libc-alpha-return-92969-incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="DsiskkXc"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 411NwM20Vdz9rxs for ; Thu, 7 Jun 2018 08:42:27 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:in-reply-to:references :message-id; q=dns; s=default; b=QgY3gVFonTtAdpea7yMQ+i6lbcgM98h blQyqMrfx8qPNWq2Bal+BG/cw0J49xHsZXBXqHUGicKxC1yD0eaiSQ4l6pK8p1rv lWiu3DYIo80nZTOuss+1b6mmQiGpS9xxnF4Yqby5KncQM7BVxXSlyYBrOTUoTwBQ pOhKhjG0yD1c= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:cc:subject:date:in-reply-to:references :message-id; s=default; bh=GC34dTFrAkmKd0Y+HlTBCu98Sc4=; b=Dsisk kXcwBATNR1a4WdThH+Snes4STEE0lFQ6ItBkBYVZPQG4XPNWV6TZzfy/GQmApmbD ulodUCkZ6cOqUQwjVLDU721JNVGP1d9FKzGCIVX6vgKEUaTycEeDuWpUB+GjL93V t00IIDvLvYubpvw1J0jt60u2tZ6GbF6/NtkeA8= Received: (qmail 80662 invoked by alias); 6 Jun 2018 22:42:10 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 79581 invoked by uid 89); 6 Jun 2018 22:42:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-27.1 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_SHORT, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mx0a-001b2d01.pphosted.com From: Tulio Magno Quites Machado Filho To: libc-alpha@sourceware.org Cc: joseph@codesourcery.com, gabriel@inconstante.eti.br, raji@linux.ibm.com Subject: [PATCH 5/9] ldbl-128ibm-compat: Provide ISO C functions not provided by the _Float128 API Date: Wed, 6 Jun 2018 19:39:05 -0300 In-Reply-To: <20180606223909.16675-1-tuliom@linux.ibm.com> References: <20180606223909.16675-1-tuliom@linux.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18060622-2213-0000-0000-000002B46BAD X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009139; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000265; SDB=6.01043027; UDB=6.00534142; IPR=6.00822157; MB=3.00021491; MTD=3.00000008; XFM=3.00000015; UTC=2018-06-06 22:41:53 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18060622-2214-0000-0000-00005A630EE1 Message-Id: <20180606223909.16675-6-tuliom@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-06-06_10:, , signatures=0 These functions do not exist in the float128 api, but they need to be provided for long double (*l api) because they are part of ISO C. This patch only adds the exported symbols that are used by user programs, i.e. __gammaieee128 and __dremieee128. 2018-06-06 Tulio Magno Quites Machado Filho Gabriel F. T. Gomes * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __dremieee128 and __gammaieee128. * sysdeps/ieee754/ldbl-128ibm-compat/w_lgammaf128.c: New file. * sysdeps/ieee754/ldbl-128ibm-compat/w_remainderf128.c: New file. --- sysdeps/ieee754/ldbl-128ibm-compat/Versions | 2 ++ sysdeps/ieee754/ldbl-128ibm-compat/w_lgammaf128.c | 22 ++++++++++++++++++++++ .../ieee754/ldbl-128ibm-compat/w_remainderf128.c | 22 ++++++++++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 sysdeps/ieee754/ldbl-128ibm-compat/w_lgammaf128.c create mode 100644 sysdeps/ieee754/ldbl-128ibm-compat/w_remainderf128.c diff --git a/sysdeps/ieee754/ldbl-128ibm-compat/Versions b/sysdeps/ieee754/ldbl-128ibm-compat/Versions index 06c19569c5..b7efe84918 100644 --- a/sysdeps/ieee754/ldbl-128ibm-compat/Versions +++ b/sysdeps/ieee754/ldbl-128ibm-compat/Versions @@ -41,6 +41,7 @@ libm { __csqrtieee128; __ctanhieee128; __ctanieee128; + __dremieee128; __erfcieee128; __erfieee128; __exp10ieee128; @@ -71,6 +72,7 @@ libm { __frexpieee128; __fromfpieee128; __fromfpxieee128; + __gammaieee128; __gamma_productieee128; __getpayloadieee128; __hypotieee128; diff --git a/sysdeps/ieee754/ldbl-128ibm-compat/w_lgammaf128.c b/sysdeps/ieee754/ldbl-128ibm-compat/w_lgammaf128.c new file mode 100644 index 0000000000..2b213783da --- /dev/null +++ b/sysdeps/ieee754/ldbl-128ibm-compat/w_lgammaf128.c @@ -0,0 +1,22 @@ +/* Deprecated gammal functions. + Copyright (C) 2018 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +#include +#include + +libm_alias_float128_other_r_ldbl(__lgamma, gamma,) diff --git a/sysdeps/ieee754/ldbl-128ibm-compat/w_remainderf128.c b/sysdeps/ieee754/ldbl-128ibm-compat/w_remainderf128.c new file mode 100644 index 0000000000..218b8d8a75 --- /dev/null +++ b/sysdeps/ieee754/ldbl-128ibm-compat/w_remainderf128.c @@ -0,0 +1,22 @@ +/* Deprecated dreml functions. + Copyright (C) 2018 Free Software Foundation, Inc. + This file is part of the GNU C Library. + + The GNU C Library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + + The GNU C Library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + + You should have received a copy of the GNU Lesser General Public + License along with the GNU C Library; if not, see + . */ + +#include +#include + +libm_alias_float128_other_r_ldbl (__remainder, drem, );