From patchwork Wed Jun 20 02:04:26 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: 931910 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-93436-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="FNR37JdX"; 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 419Srk4R3Vz9s4v for ; Wed, 20 Jun 2018 12:07:18 +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=fibQmK1V5ESjqsblRkANATaFntwHKJj ON3n0CHBhXKZ1/91izfWifwe2nuNCn9xRsQvXza3MWzIed9+1UA28ce4iCTnj4CK /41/YHw8UKbavTgUFU1GO+Z9so6kDxWMn+bUMjl9lIY1Dj4IdNREh2M6Yzx5XY++ pUQelxuc2eI8= 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=KqGjmXGUs44ZUluI0yy1fLMWAnY=; b=FNR37 JdXT+xvEhWQrtx2gyQ32T0MI4XdSgBxEB+Xk1xTW3Kwsu7FGfPblPMvWaj8Mxyj1 gmT4lkwaxvtvbr77y6gbiixGoAT6YBjuPkMbuu5D31sYtgJn7j7gb7E5f+1tYNM6 cRRuvGHnNHDGcanus/ZNO3NXCy9WNkJpYSP6B4= Received: (qmail 10813 invoked by alias); 20 Jun 2018 02:06:48 -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 10707 invoked by uid 89); 20 Jun 2018 02:06:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-27.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, 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 Subject: [PATCH 12/12] ldbl-128ibm-compat: Provide ieee128 symbols to narrow functions Date: Tue, 19 Jun 2018 23:04:26 -0300 In-Reply-To: <20180620020426.20372-1-tuliom@linux.ibm.com> References: <20180620020426.20372-1-tuliom@linux.ibm.com> X-TM-AS-GCONF: 00 x-cbid: 18062002-0020-0000-0000-00000E32815C X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00009223; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000265; SDB=6.01049504; UDB=6.00537768; IPR=6.00828477; MB=3.00021748; MTD=3.00000008; XFM=3.00000015; UTC=2018-06-20 02:06:43 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18062002-0021-0000-0000-0000620032BB Message-Id: <20180620020426.20372-13-tuliom@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2018-06-20_01:, , signatures=0 Add ieee128 aliases for faddl, fdivl, fmull, fsubl, daddl, ddivl, dmull, dsubl. 2018-06-19 Tulio Magno Quites Machado Filho * math/math-narrow.h [__HAVE_DISTINCT_FLOAT128 && !__HAVE_FLOAT128_UNLIKE_LDBL] (libm_alias_float32_float128, libm_alias_float64_float128): Provide *ieee128 aliases. * sysdeps/ieee754/ldbl-128ibm-compat/Versions: Add __f32addieee128, __f32divieee128, __f32mulieee128, __f32subieee128, __f64addieee128, __f64divieee128, __f64mulieee128 and __f64subieee128. Signed-off-by: Tulio Magno Quites Machado Filho --- math/math-narrow.h | 10 ++++++++++ sysdeps/ieee754/ldbl-128ibm-compat/Versions | 8 ++++++++ 2 files changed, 18 insertions(+) diff --git a/math/math-narrow.h b/math/math-narrow.h index c4065e88f7..bfc1c8dced 100644 --- a/math/math-narrow.h +++ b/math/math-narrow.h @@ -356,6 +356,16 @@ libm_alias_float32_float128_main (func) # define libm_alias_float64_float128(func) \ libm_alias_float64_float128_main (func) +#elif __HAVE_DISTINCT_FLOAT128 && !__HAVE_FLOAT128_UNLIKE_LDBL +# define libm_alias_float32_float128(func) \ + libm_alias_float32_float128_main (func) \ + weak_alias (__f32 ## func ## f128, f32 ## func ## f64x) \ + weak_alias (__f32 ## func ## f128, __ ## f32 ## func ## ieee128) +# define libm_alias_float64_float128(func) \ + libm_alias_float64_float128_main (func) \ + weak_alias (__f64 ## func ## f128, f64 ## func ## f64x) \ + weak_alias (__f64 ## func ## f128, f32x ## func ## f64x) \ + weak_alias (__f64 ## func ## f128, __ ## f64 ## func ## ieee128) #else # define libm_alias_float32_float128(func) \ libm_alias_float32_float128_main (func) \ diff --git a/sysdeps/ieee754/ldbl-128ibm-compat/Versions b/sysdeps/ieee754/ldbl-128ibm-compat/Versions index 01e67aec1a..8fc6fb05f3 100644 --- a/sysdeps/ieee754/ldbl-128ibm-compat/Versions +++ b/sysdeps/ieee754/ldbl-128ibm-compat/Versions @@ -47,6 +47,14 @@ libm { __exp2ieee128; __expieee128; __expm1ieee128; + __f32addieee128; + __f32divieee128; + __f32mulieee128; + __f32subieee128; + __f64addieee128; + __f64divieee128; + __f64mulieee128; + __f64subieee128; __fabsieee128; __fdimieee128; __floorieee128;