From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) by sourceware.org (Postfix) with ESMTPS id 6F0CB385840F for ; Thu, 2 Dec 2021 14:30:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6F0CB385840F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rtems.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lj1-f176.google.com with SMTP id j18so41983303ljc.12 for ; Thu, 02 Dec 2021 06:30:45 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=LzFZuGlYnAAN5spIe2ghzTmGfvnL8UWRAaaoHFoaLvM=; b=B/9bffG2jeI9aUHbX8vG6Ii8BHAga0lGFp4O6/zibJPXc1YnZjBzBz9blaqtxlHGqU SmsJXowqhWegXBKwMWlpL6id19PMN3GV1MxCty4Rb7xQs2ZB6MADLim5/0GTdsqT6K5d e8hpNq4SADi7o+KNyQ75BMR6Yc8lV7LQHsQJ9gOAVExumWA7/HGr2AivjOXyvfvIFjU5 QkL5nFphsQm8CkIXXFpem6B095GddplUjY02pcZ/WKFUSSJifbJeZS8Ml129qn78YvVn UluME1azjuv7duVoYVMGcy/I5bLn1WGk/Hz4VeYB5Ac9KVBykDqw91k4bpFHWLoPK35y MBzg== X-Gm-Message-State: AOAM530J26XfN+4ZYVYh11aoc3gJkDnqT/aj7va5+eCwtAxZP2hUMwxH sokrDAZ126zX5+WsYE7dGNty2Q+mOOeJvg== X-Google-Smtp-Source: ABdhPJwsJa+8e6TW6lz766Rmgj6ymZfHT2rCGFahnaLDZ9lJF51JTVZwpPmgEJYGS0EA1aLTq+CiYA== X-Received: by 2002:a05:651c:154a:: with SMTP id y10mr11968761ljp.314.1638455442904; Thu, 02 Dec 2021 06:30:42 -0800 (PST) Received: from mail-lj1-f177.google.com (mail-lj1-f177.google.com. [209.85.208.177]) by smtp.gmail.com with ESMTPSA id y11sm386362ljh.54.2021.12.02.06.30.42 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Dec 2021 06:30:42 -0800 (PST) Received: by mail-lj1-f177.google.com with SMTP id v15so179713ljc.0 for ; Thu, 02 Dec 2021 06:30:42 -0800 (PST) X-Received: by 2002:a2e:9e59:: with SMTP id g25mr11981422ljk.464.1638455442606; Thu, 02 Dec 2021 06:30:42 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Reply-To: joel@rtems.org From: Joel Sherrill Date: Thu, 2 Dec 2021 08:30:30 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: OpenLibm? To: Paul Zimmermann Cc: Newlib Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-3031.7 required=5.0 tests=BAYES_00, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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, 02 Dec 2021 14:30:47 -0000 On Thu, Dec 2, 2021 at 2:03 AM Paul Zimmermann wrote: > > about Joel's mail (https://sourceware.org/pipermail/newlib/2021/018739.html). > > OpenLibm long double does not implement exp10, j0, j1, y0 and y1, and has > accuracy issues with lgamma and tgamma. See Table 11 of > https://members.loria.fr/PZimmermann/papers/#accuracy. OK both have issues. I'd like long double support in newlib's libm to improve standards compliance. I was looking for an implementation. Issue: newlib has no long double support when sizeof(long double) != sizeof(double). Random thoughts: + For the missing openlibm methods, newlib's implementation of those methods could be submitted to openlibm. + Does newlib have an accuracy document? + Is newlib's accuracy better than openlibm's? + Would it make sense to port long double methods from openlibm to newlib? I'm just trying to find a technical path to get long double into newlib. I have no vested interest in any particular path that achieves that. If we can agree on a technical path, RTEMS could add this as a potential Google Summer of Code 2022 project. --joel > Paul