From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.2 Received: from mother.openwall.net (mother.openwall.net [195.42.179.200]) by inbox.vuxu.org (OpenSMTPD) with SMTP id 614864af for ; Wed, 5 Feb 2020 13:32:42 +0000 (UTC) Received: (qmail 11847 invoked by uid 550); 5 Feb 2020 13:32:40 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 11829 invoked from network); 5 Feb 2020 13:32:40 -0000 Date: Wed, 5 Feb 2020 08:32:26 -0500 From: Rich Felker To: "sysysongyue@gmail.com" Cc: musl@lists.openwall.com Message-ID: <20200205133226.GA1663@brightrain.aerifal.cx> References: <5e3a7de9.1c69fb81.5dae2.b7fa@mx.google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5e3a7de9.1c69fb81.5dae2.b7fa@mx.google.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: Rich Felker Subject: Re: [musl] [BUG] catanf: overflow when the parameter is valid On Wed, Feb 05, 2020 at 04:33:43PM +0800, sysysongyue@gmail.com wrote: > Hi! > I wrote some testcases for catanf(), and found that catanf(1+0*I) return > 99999996802856924650656260769173209088+99999996802856924650656260769173209088*I, > which should return pi/4 in expected. catanl, catanhf, and catanhl have > the same problem. Is this a bug? Any patches existed? > Thank you in advance! Looks like the equivalent of commit 10e4bd3780050e75b72aac5d85c31816419bb17d for catan was not applied to catanf. It should be an easy fix. I'll look at it. BTW your mail contained an empty plaintext part and the actual message was buried in the html version. I was able to dig it out to reply, but try to send text-only or at least with a matching text part since many readers probably can't see your email and the archive probably missed the body. Rich