From nobody Mon Feb 10 17:48:31 2025 X-Original-To: freebsd-numerics@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YsBrr2Pksz5mVcr for ; Mon, 10 Feb 2025 17:48:44 +0000 (UTC) (envelope-from enh@google.com) Received: from mail-oi1-x232.google.com (mail-oi1-x232.google.com [IPv6:2607:f8b0:4864:20::232]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YsBrr0W4Zz3RnL for ; Mon, 10 Feb 2025 17:48:44 +0000 (UTC) (envelope-from enh@google.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-oi1-x232.google.com with SMTP id 5614622812f47-3f3b02ad6a3so706598b6e.0 for ; Mon, 10 Feb 2025 09:48:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1739209723; x=1739814523; darn=freebsd.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=58LNgFzdlBWLLUijwlDNKHtxTqixIuVS56R6PXyppmY=; b=bV62SXIGRmfa4rnQtfq+iI077gru1xxfmT7zwqA5H6nZXZtbJjZiwbfC+A5ZmOcehc Q1i6GyRZ8lK3bjYCsMuKOfChgDpIL4ji7AT2SxPh9shsu7y17jxVwak39/RZgWV/Da/H ZeyBm4JM57nZNbszOy3GrgInHTkZNIbiZASYm48wEVatZeLUOBMLLgRihW/1+VToXQg3 sxFvsgokOke62GnsTx8tco8t91KbDiG8Nurwx83c00p5tKvVPwUN0Cfplv/RXrzRJVqr Bo8d7bwR6zFdq1RG4dYeQPdHwR3O9viYpFZ/lnxRThPT3ry8/EwcMRAgkjL6HrtL2KCp GAnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739209723; x=1739814523; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=58LNgFzdlBWLLUijwlDNKHtxTqixIuVS56R6PXyppmY=; b=vwRzNquUVfvPnIJu100y/Fm+hCCNXaKbdQr+oys2HH3IzYdHXm8gSPRSnmLaTD+Sc7 JfjfW0hajqdowHPPOXIIqtlS7knbMLo13ef1Hm5WmUszgjCNSj1wpzIEAlmW+94DoAO7 PzCCX1b+npFMQDTtO+FoFkZwwtXF1P4rPEUsXGGL6ZJ3NkZnE/Johhz3XLVfqkFUCXNE B2WLjFSatklbyBMD3IjC5LeOXLpu43HCuCONr1tP6tmcraJc1rNsaayiH1YYbS6Hac6A DlMwZQmoWYviC4Nf44uBOKaDEs2h47m+136djl6ZN0y6Ya/xv+6uarwH71epFIQ1vTMT Czmg== X-Forwarded-Encrypted: i=1; AJvYcCWD9IqYbzG0YguN3RqxBcp8XyWSluXK6ViSCYWtYYli0cxxHUVaeuP0HeNruN9TmhgcbxXaic8RAWn+wjAv8OYv@freebsd.org X-Gm-Message-State: AOJu0YxaR9lKlnwLJAQZuHI82KEeKhB+q5niTdM/YSt5epQzC471SaOG gKl2QnZq9V8HugnUVCxQP5ujKpbNgas+G/g/z31Rux5tKTdjNMRX2BLsu4n48czIlTHkX4TFGW1 q7Qz5xZqA8lR/gHD2VnyywwS2r+R1PLt8e8Ma X-Gm-Gg: ASbGncs8Id2QLgMMBgu7dunVrQWLh5uK+kuvA9ljkhh6Le5DZ4Aly9zkdlKxHEN9INc CBLxzhc7TT4vHUukeaEZxs+5+6H+DNPR36F/XXOZikU3kYwYBsDx6EFVaRaK2V/fNw3039w== X-Google-Smtp-Source: AGHT+IHhJPGPY/8A/BgZBiwbdx1Ou2K6Util6jLVgjgZ+Tp5wMrWW9EfH7qEJhxdwx+qKX+Yoh99UueoMxK0ZJmmp5Q= X-Received: by 2002:a05:6808:1396:b0:3eb:3d1b:4876 with SMTP id 5614622812f47-3f39237a354mr8717235b6e.32.1739209722867; Mon, 10 Feb 2025 09:48:42 -0800 (PST) List-Id: Discussions of high quality implementation of libm functions List-Archive: https://lists.freebsd.org/archives/freebsd-numerics List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-numerics@FreeBSD.org MIME-Version: 1.0 References: <1749328077.10705244.1739204040803.ref@mail.yahoo.com> <1749328077.10705244.1739204040803@mail.yahoo.com> In-Reply-To: From: enh Date: Mon, 10 Feb 2025 12:48:31 -0500 X-Gm-Features: AWEUYZnSCDoEPjJZ1M71M0Z9auZpiS8N8UEIkXUVOtMzvFcQh8DkwD1yjvHqslU Message-ID: Subject: Re: Time to evaluate the CORE-MATH project? To: sgk@troutmask.apl.washington.edu Cc: Pedro Giffuni , "freebsd-numerics@FreeBSD.org" Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4YsBrr0W4Zz3RnL X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] yeah, i'm interested in switching Android's libm over to the llvm-libc routines, but not until i can do it by taking a whole family of f/d/ld variants at a time... On Mon, Feb 10, 2025 at 12:25=E2=80=AFPM Steve Kargl wrote: > > On Mon, Feb 10, 2025 at 04:14:00PM +0000, Pedro Giffuni wrote: > > Quoting a recent posting in hackers@:https://lists.freebsd.org/archives= /freebsd-hackers/2025-February/004304.txt > > From: Paul Zimmermann Date: Mon, 10 Feb 20= 25 08:53:53 UTC Dear all, > > a new update of our comparison is available, with FreeBSD 14.2: > > https://members.loria.fr/PZimmermann/papers/accuracy.pdf > > Main changes in this update: > > * GNU libc now provides 21 correctly-rounded functions in single precis= ion (integrating the CORE-MATH code)* LLVM-libc provides more correctly-ro= unded functions > > Brian GladmanVincenzo InnocenteJohn MatherPaul Zimmermann______ > > The code is under an MIT license:https://core-math.gitlabpages.inria.fr= / > > From the table, code is available for float and for double except > lgamma. There are only 6 functions implemented for LD80 long > double and no code for LD128 long double. This suggest that if > someone starts importing parts of core-math, then freebsd's libm > will be a mixture of msun and core-math, i.e, maintenance will > become more challenging. Someone has already imported a few > routines from Cephus to cover missing functionality in LD128. > I know bde would not look at cephus code, and I seldom look at > it as there is no one to review a change if I made one. > > PS: The core-math LD80 routines would need to be tested on IA32 > due to the way FreeBSD sets the FPU to 53-bit precision. Of > course, FreeBSD may drop IA32 support, so this might not be an > issue. > > -- > Steve >