From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by sourceware.org (Postfix) with ESMTPS id 33884386EC5B for ; Thu, 17 Dec 2020 07:29:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 33884386EC5B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=inria.fr Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Paul.Zimmermann@inria.fr X-IronPort-AV: E=Sophos;i="5.78,426,1599516000"; d="scan'208";a="367915352" Received: from tomate.loria.fr (HELO tomate) ([152.81.10.51]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 17 Dec 2020 08:29:08 +0100 Date: Thu, 17 Dec 2020 08:29:06 +0100 Message-Id: From: Paul Zimmermann To: Jeff Johnston Cc: newlib@sourceware.org In-Reply-To: (message from Jeff Johnston on Wed, 16 Dec 2020 15:31:47 -0500) Subject: Re: regression in tgamma? References: X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: newlib@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Newlib mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Dec 2020 07:29:11 -0000 Hi Jeff, > From: Jeff Johnston > Date: Wed, 16 Dec 2020 15:31:47 -0500 > > Hi Paul, > > I believe I found the problem. > > The __ieee754_tgamma functions are not declared in fdlibm.h so the calls in > tgamma and tgammaf are using > default parms and getting things wrong. My test calling __ieee754_tgamma > directly only worked after I added > a declaration to __ieee754_tgamma locally. > > I have pushed a change to master. Please try it out. > > -- Jeff J. with revision 865cd30 I now get: zimmerma@tomate:/tmp/newlib-cygwin$ ./a.out x=-0x0p+0 y=inf x=-0x1.53f198fe3b278p+7 y=0x1.fd6d312572d9cp-1015 The double value is ok, however the float result should be -inf. This should have been fixed by Keith Packard in commit 4641693. Paul