From patchwork Tue Aug 30 23:39:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Paul E. Murphy" X-Patchwork-Id: 664323 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org 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 3sP4kN1yQTz9s8x for ; Wed, 31 Aug 2016 09:39:56 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b=IroPGyl4; dkim-atps=neutral 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:subject:date:in-reply-to:references :in-reply-to:references:message-id; q=dns; s=default; b=oTNTfk5j enyhybaOjzda3N5363GCTdEJggAYSIRlaxsZIakcNsLmnnl/bp4O/QCIQAkIoR3z gyPpdXxX4fMjfK33+Wtli4AlE8U0t76eLh6tWduF34Lc41iqjwlsocCLFnkPzA+n rDlDqyq32fcssdyQVNG3944JJiWTcCp7eYY= 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:subject:date:in-reply-to:references :in-reply-to:references:message-id; s=default; bh=lRUQ+xcdiRcrFf gCtkWE54uFle4=; b=IroPGyl44/Y9oOx+vVbd2QnACu8Hb6vakg9A/Kgg2lze3J SSQXl6TbViPi+7bjrDaOiA5aOE3/h1/vmWNE+FoWJdiRsImlKZ0uv0uKtWFErU0v ++edW3WU4AnAcNB+7O5owK6MVqbSs7+yEmJQziBAlBwS69kkVdmAutB2L6Ums= Received: (qmail 34440 invoked by alias); 30 Aug 2016 23:39:50 -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 34428 invoked by uid 89); 30 Aug 2016 23:39:49 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=__set_errno, math_private.h, math_privateh, UD:math_private.h X-HELO: mx0a-001b2d01.pphosted.com X-IBM-Helo: d03dlp02.boulder.ibm.com X-IBM-MailFrom: murphyp@linux.vnet.ibm.com From: "Paul E. Murphy" To: libc-alpha@sourceware.org Subject: [PATCH 5/5] Extend generic k_rem_pio2 implementation using generics. Date: Tue, 30 Aug 2016 18:39:38 -0500 In-Reply-To: References: In-Reply-To: References: X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16083023-0008-0000-0000-0000056EF308 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00005680; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000184; SDB=6.00751825; UDB=6.00355389; IPR=6.00524632; BA=6.00004681; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00012523; XFM=3.00000011; UTC=2016-08-30 23:39:45 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16083023-0009-0000-0000-00003AB8094D Message-Id: <52858566502889b94bf1d4127aaa027cc51a40fb.1472599898.git.murphyp@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-08-30_10:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1604210000 definitions=main-1608300225 This is actually just an internal stub. It is already implemented where needed. This ensures there is always an empty stub for each type/format when it is not needed. * math/Makefile: (gen-libm-calls): Add k_rem_pio2. (libm-calls): Remove above. * math/k_rem_pio2l.c: Refactor into ... * math/k_rem_pio2_template.c: New file. --- math/Makefile | 5 +++-- math/k_rem_pio2_template.c | 2 ++ math/k_rem_pio2l.c | 15 --------------- 3 files changed, 5 insertions(+), 17 deletions(-) create mode 100644 math/k_rem_pio2_template.c delete mode 100644 math/k_rem_pio2l.c diff --git a/math/Makefile b/math/Makefile index c0d7ff0..0eb904f 100644 --- a/math/Makefile +++ b/math/Makefile @@ -49,14 +49,15 @@ gen-libm-calls = cargF conjF cimagF crealF cabsF s_cacosF \ s_cacoshF s_ccosF s_ccoshF s_casinF s_csinF s_casinhF \ k_casinhF s_csinhF k_casinhF s_csinhF s_catanhF s_catanF \ s_ctanF s_ctanhF s_cexpF s_clogF s_cprojF s_csqrtF \ - s_cpowF s_clog10F s_fdimF s_nextdownF s_fmaxF s_fminF + s_cpowF s_clog10F s_fdimF s_nextdownF s_fmaxF s_fminF \ + k_rem_pio2F libm-calls = \ e_acosF e_acoshF e_asinF e_atan2F e_atanhF e_coshF e_expF e_fmodF \ e_hypotF e_j0F e_j1F e_jnF e_lgammaF_r e_logF e_log10F e_powF \ e_rem_pio2F e_remainderF e_scalbF e_sinhF e_sqrtF e_gammaF_r \ e_ilogbF \ - k_cosF k_rem_pio2F k_sinF k_tanF s_asinhF s_atanF s_cbrtF \ + k_cosF k_sinF k_tanF s_asinhF s_atanF s_cbrtF \ s_ceilF s_cosF s_erfF s_expm1F s_fabsF \ s_floorF s_log1pF w_log1pF s_logbF \ s_nextafterF s_nexttowardF s_rintF s_scalblnF w_scalblnF \ diff --git a/math/k_rem_pio2_template.c b/math/k_rem_pio2_template.c new file mode 100644 index 0000000..4bb79f6 --- /dev/null +++ b/math/k_rem_pio2_template.c @@ -0,0 +1,2 @@ +/* This function is not necessary for all formats/types. If necessary, override this + in the format/type specific directory. */ diff --git a/math/k_rem_pio2l.c b/math/k_rem_pio2l.c deleted file mode 100644 index 01bf158..0000000 --- a/math/k_rem_pio2l.c +++ /dev/null @@ -1,15 +0,0 @@ -#include -#include -#include -#include - -int -__kernel_rem_pio2l (long double *x, long double *y, int e0, int nx, int prec, - const int *ipio2) -{ - fputs ("__kernel_rem_pio2l not implemented\n", stderr); - __set_errno (ENOSYS); - return 0.0; -} - -stub_warning (__kernel_rem_pio2l)