From owner-freebsd-numerics@freebsd.org Mon Dec 31 15:22:32 2018 Return-Path: Delivered-To: freebsd-numerics@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A005E1437F84 for ; Mon, 31 Dec 2018 15:22:32 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id EFC2A709A2; Mon, 31 Dec 2018 15:22:31 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.15.2/8.15.2) with ESMTPS id wBVFMURl001315 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Mon, 31 Dec 2018 07:22:30 -0800 (PST) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.15.2/8.15.2/Submit) id wBVFMUsa001314; Mon, 31 Dec 2018 07:22:30 -0800 (PST) (envelope-from sgk) Date: Mon, 31 Dec 2018 07:22:30 -0800 From: Steve Kargl To: Pedro Giffuni Cc: freebsd-numerics@freebsd.org Subject: Re: New math library from ARM Message-ID: <20181231152230.GC823@troutmask.apl.washington.edu> Reply-To: sgk@troutmask.apl.washington.edu References: <797a7755-db93-1b9c-f3b9-8850d948e098@FreeBSD.org> <20181231151904.GB823@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181231151904.GB823@troutmask.apl.washington.edu> User-Agent: Mutt/1.10.1 (2018-07-13) X-Rspamd-Queue-Id: EFC2A709A2 X-Spamd-Bar: +++ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [3.18 / 15.00]; ARC_NA(0.00)[]; HAS_REPLYTO(0.00)[sgk@troutmask.apl.washington.edu]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.81)[0.809,0]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[washington.edu]; AUTH_NA(1.00)[]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; IP_SCORE(0.18)[ip: (0.50), ipnet: 128.95.0.0/16(0.27), asn: 73(0.18), country: US(-0.08)]; RCVD_IN_DNSWL_MED(-0.20)[21.76.95.128.list.dnswl.org : 127.0.11.2]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_SPAM_LONG(0.78)[0.777,0]; MX_GOOD(-0.01)[cached: troutmask.apl.washington.edu]; NEURAL_SPAM_MEDIUM(0.73)[0.727,0]; R_SPF_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:73, ipnet:128.95.0.0/16, country:US]; MID_RHS_MATCH_FROM(0.00)[] X-BeenThere: freebsd-numerics@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussions of high quality implementation of libm functions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Dec 2018 15:22:32 -0000 On Mon, Dec 31, 2018 at 07:19:04AM -0800, Steve Kargl wrote: > On Mon, Dec 31, 2018 at 10:06:57AM -0500, Pedro Giffuni wrote: > > Hi; > > > > Just noted a recent initiative from musl-libc: > > > > https://www.openwall.com/lists/musl/2018/12/08/1 > > > > It appears they plan to replace their (FreeBSD) math code with a new ARM > > implementation: > > > > https://github.com/ARM-software/optimized-routines > > > > The Copyright on this code is unclear. For example, in > single/e_rem_pio2.c lines 1-6: > > /* > * e_rem_pio2.c > * > * Copyright (c) 1999-2018, Arm Limited. > * SPDX-License-Identifier: MIT > */ > > Then lines 16-18: > > /* > * Simple cases: all nicked from the fdlibm version for speed. > */ > > The original fdlibm licenses applies ot the nicked lines. > There is also some interesting uses of float literal constants with 80 digits when at most 9 are relevant. -- Steve