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 18781 invoked from network); 8 Jan 2021 09:07:12 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 8 Jan 2021 09:07:12 -0000 Received: (qmail 24040 invoked by uid 550); 8 Jan 2021 09:07:07 -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 24022 invoked from network); 8 Jan 2021 09:07:07 -0000 X-IronPort-AV: E=Sophos;i="5.79,330,1602540000"; d="scan'208";a="369397751" Date: Fri, 08 Jan 2021 10:06:53 +0100 Message-Id: From: Paul Zimmermann To: Rich Felker Cc: musl@lists.openwall.com In-Reply-To: <20210107200250.GG22981@brightrain.aerifal.cx> (message from Rich Felker on Thu, 7 Jan 2021 15:02:50 -0500) References: <20210107194901.GF22981@brightrain.aerifal.cx> <20210107200250.GG22981@brightrain.aerifal.cx> Subject: Re: [musl] issue with exp10l Dear Rich, > OK, on further investigation it looks like your problem is that you're > not passing a NAN but a trap representation. The representation is > only a nan if the exponent value is 0x7fff. For exponent not 0x7fff or > 0, the high bit of the significand must be set; otherwise it's a trap > representation. thank you. I have now forced the high bit of the significand to be set, and it works better indeed. I have found errors up to 40 ulps for exp10l: exp10l 0xd.41cfe8659e3d7eep+8l 40.1 Best regards, Paul