From patchwork Fri Nov 2 18:14:41 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Tobias Burnus X-Patchwork-Id: 196710 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]) by ozlabs.org (Postfix) with SMTP id B4B5B2C007A for ; Sat, 3 Nov 2012 05:15:03 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1352484904; h=Comment: DomainKey-Signature:Received:Received:Received:Received: Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject: References:In-Reply-To:Content-Type:Mailing-List:Precedence: List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=d6ekxyDf+nIYH72zeD0YFH4xiHM=; b=BvqyZK+XpAiZ3f0 b92Dr3bmrqw+fcoeAdR1r1GahPSK4tClz8SZrppShby3BOEYxJ7i6+lJHs9KtkxN loXJ9hSjDdlk4FRe87lCIPni4wqgTKM6QuxsMGjAqv4Vky1afNF22f2/5sNeIMSE x4qFYwJspS4R6Dgew1s84M/BeTfI= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=YjRqLkjVEF+YtyLm89+diSeGgOqj+NXmB61d1aqV4M2UKi0uXDeMepzPof4FvH 1Tnb0479dCP5ITRCARQ1TJgucHRBdMLS2g+DZN/KPpz7eW1ClqSX30JN7ikg5Wg1 4aJrotfBYXSN9l71KKphg7Z0bVCkT4mJMoYhla5CpD1sU=; Received: (qmail 32371 invoked by alias); 2 Nov 2012 18:14:51 -0000 Received: (qmail 32362 invoked by uid 22791); 2 Nov 2012 18:14:49 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL, BAYES_50, KHOP_SPAMHAUS_DROP, KHOP_THREADED, RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mx01.qsc.de (HELO mx01.qsc.de) (213.148.129.14) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 02 Nov 2012 18:14:42 +0000 Received: from [192.168.178.22] (port-92-195-110-241.dynamic.qsc.de [92.195.110.241]) by mx01.qsc.de (Postfix) with ESMTP id 5A7E13CAD0; Fri, 2 Nov 2012 19:14:41 +0100 (CET) Message-ID: <50940D91.8070704@net-b.de> Date: Fri, 02 Nov 2012 19:14:41 +0100 From: Tobias Burnus User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121025 Thunderbird/16.0.2 MIME-Version: 1.0 To: Paolo Carlini CC: gcc patches Subject: Re: [patch, committed] libquadmath: Small fmaq and lgamma update References: <5093FC03.7000306@net-b.de> <50940A89.2070608@oracle.com> <50940C92.7000505@net-b.de> In-Reply-To: <50940C92.7000505@net-b.de> Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Tobias Burnus: > Sorry, I seemingly applied an old premature version of the patch > instead of the one I had build and tested. Fixed by the attached patch > (Rev. 193100). Now with a nonzero file as attachment, it helps diffing -r193099:193100 instead of -r193109:193100. I think I need a breakā€¦ Tobias Index: math/fmaq.c =================================================================== --- math/fmaq.c (Revision 193099) +++ math/fmaq.c (Revision 193100) @@ -77,7 +77,7 @@ result nor whether there is underflow depends on its exact value, only on its sign. */ if (u.ieee.exponent + v.ieee.exponent - < IEEE854_FLT128_DOUBLE_BIAS - FLT128_MANT_DIG - 2) + < IEEE854_FLOAT128_BIAS - FLT128_MANT_DIG - 2) { int neg = u.ieee.negative ^ v.ieee.negative; __float128 tiny = neg ? -0x1p-16494L : 0x1p-16494L; @@ -94,10 +94,8 @@ : (w.ieee.exponent == 0 || (w.ieee.exponent == 1 && w.ieee.negative != neg - && w.ieee.mantissa3 == 0 - && w.ieee.mantissa2 == 0 - && w.ieee.mantissa1 == 0 - && w.ieee.mantissa0 == 0))) + && w.ieee.mant_low == 0 + && w.ieee.mant_high == 0))) { volatile __float128 force_underflow = x * y; (void) force_underflow;