From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31220 invoked from network); 17 Aug 2023 15:57:30 -0000 Received: from second.openwall.net (193.110.157.125) by inbox.vuxu.org with ESMTPUTF8; 17 Aug 2023 15:57:30 -0000 Received: (qmail 15510 invoked by uid 550); 17 Aug 2023 15:57:24 -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 15478 invoked from network); 17 Aug 2023 15:57:24 -0000 Date: Thu, 17 Aug 2023 17:57:12 +0200 From: Szabolcs Nagy To: Paul Zimmermann Cc: musl@lists.openwall.com Message-ID: <20230817155712.GD3448312@port70.net> Mail-Followup-To: Paul Zimmermann , musl@lists.openwall.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [musl] musl 1.2.4 * Paul Zimmermann [2023-08-16 16:39:25 +0200]: > while updating our comparison of mathematical functions with Musl 1.2.4, > I noticed the following two issues with acoshl and exp10l in double extended > precision: > > zimmerma@coriandre:~/svn/tbd/20/src/binary80$ VERBOSE=-v ./doit.musl acosh 1000 > Checking acosh with musl-1.2.4 > Using seed 2804715 > Using 6 threads > NEW acosh 0 -1 -0x6.e2368c0ed74e5698p+16l [-nan] [inf] inf inf > libm gives -0x4.b4d6a621e8e631f8p+0l > mpfr gives nanl yes it seems acoshl(x) does not handle x<0 (and can go wrong for x in [-2,-0x1p32]) > > zimmerma@coriandre:~/svn/tbd/20/src/binary80$ VERBOSE=-v ./doit.musl exp10 1000 > Checking exp10 with musl-1.2.4 > Using seed 2807610 > Using 6 threads > exp10 0 -1 0x2.68826a13ef3fde64p+16376l [-nan] [inf] inf inf > libm gives nanl > mpfr gives infl this seems to be a bug in powl: the reducl function can overflow. thanks for the reports.