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 16567 invoked from network); 7 Jan 2021 13:37:11 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 7 Jan 2021 13:37:11 -0000 Received: (qmail 23859 invoked by uid 550); 7 Jan 2021 13:37:08 -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 23826 invoked from network); 7 Jan 2021 13:37:08 -0000 X-IronPort-AV: E=Sophos;i="5.79,329,1602540000"; d="scan'208";a="369312866" Date: Thu, 07 Jan 2021 14:36:56 +0100 Message-Id: From: Paul Zimmermann To: musl@lists.openwall.com Subject: [musl] large errors with long double functions Hi, I notice large errors for some long double functions (on x86_64) with musl-1.2.1: expm1l 0x2.c516edaf5e96a33cp+12l 9700.65 lgammal -0x2.74ff92c01f0d82acp+0l 9.08e+19 sinhl 0x2.c516edaf5e96a33cp+12l 9700.65 tgammal -0x2.8d19fd20f3aa62cp+4l 3.69e+19 powl 0xd.64229ca81fffep+16368l,-0x1.b9b6d40000000002p-48l 532.341 The lgammal/tgammal errors are not surprising, but those for expm1l and sinhl are, and the fact that the input/error are the same for expm1l and sinhl suggest that one function is using the other one, and maybe that latter one only provides double precision accuracy. For powl also it is surprising, since other libraries typically yield errors < 1 ulp. Best regards, Paul