From patchwork Fri Apr 28 21:34:39 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gabriel F. T. Gomes" X-Patchwork-Id: 756603 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 3wF6b15cbqz9s7l for ; Sat, 29 Apr 2017 07:36:45 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="ZQpNNlQi"; 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 :message-id; q=dns; s=default; b=E4H6bqVMrp4ydOwUBWaoua7JbjUjfCo zzuGww3YGIcBuiXpyCSVtIGq3mLocvn/p1lsxyvtV7VKP5B5Tkp7HAV/TtgeJdo5 X/ymVEkfybSDa9BIAITnQCGvFpO+GMDtqBbCuvnk90b60MPnC/1KdbeIDB2M0E5i XD1FgM4TJacA= 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 :message-id; s=default; bh=sfGrl+pIk5OzUGgBkqQ5/eOS7H4=; b=ZQpNN lQiKQqgRI2pKopEEtR6AafxnnHl5DD80laEcQt6e2X3n7ReWZ2rRmA+rYKB6gO3W G5DrX++oqkYplUcmuXxZTjoWVjl1U+RLkUD3wkCQ+Dk34Nlk5HMqlG2svJyn6RYw l2npDvefJb2cVBaQAqHzjKVB6VO3C9LsxQQ3Oo= Received: (qmail 2182 invoked by alias); 28 Apr 2017 21:35:46 -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 2115 invoked by uid 89); 28 Apr 2017 21:35:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-25.7 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy= X-HELO: mx0a-001b2d01.pphosted.com From: "Gabriel F. T. Gomes" To: libc-alpha@sourceware.org Subject: [PATCH v2 7/8] float128: Enable use of IEEE wrapper templates Date: Fri, 28 Apr 2017 18:34:39 -0300 In-Reply-To: <1493415280-30534-1-git-send-email-gftg@linux.vnet.ibm.com> References: <1493415280-30534-1-git-send-email-gftg@linux.vnet.ibm.com> X-TM-AS-MML: disable x-cbid: 17042821-0028-0000-0000-000001AFC7FC X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17042821-0029-0000-0000-000014AFCDDC Message-Id: <1493415280-30534-8-git-send-email-gftg@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-04-28_14:, , 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-1703280000 definitions=main-1704280263 The templates for the IEEE functions wrappers implement wrappers that do not rely on _LIB_VERSION / matherr / __kernel_standard functionality to set errno and fix the return value of the functions. The wrappers are ready to be used by all floating-point types, however they will first be used by float128, since the old wrappers for float, double, and long double need to be first deprecated and versioned. This commits defines __USE_WRAPPER_TEMPLATE to 1 for float128 files, so that the new wrapper templates are used for this type. 2017-02-01 Gabriel F. T. Gomes * sysdeps/generic/math-type-macros-float128.h (__USE_WRAPPER_TEMPLATE): Define to 1 to enable use of the wrapper templates. --- sysdeps/generic/math-type-macros-float128.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysdeps/generic/math-type-macros-float128.h b/sysdeps/generic/math-type-macros-float128.h index 4cd23a0..c06db4a 100644 --- a/sysdeps/generic/math-type-macros-float128.h +++ b/sysdeps/generic/math-type-macros-float128.h @@ -40,4 +40,7 @@ /* Supply the generic macros. */ #include +/* Use the type-generic wrapper templates. */ +#define __USE_WRAPPER_TEMPLATE 1 + #endif