From nobody Thu Nov 27 18:34:17 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 4dHQ7n4j9jz6Hq3H for ; Thu, 27 Nov 2025 18:34:29 +0000 (UTC) (envelope-from kargls@comcast.net) Received: from resqmta-h2p-547392.sys.comcast.net (resqmta-h2p-547392.sys.comcast.net [IPv6:2001:558:fd02:2446::4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4dHQ7l6sbhz3GB8 for ; Thu, 27 Nov 2025 18:34:27 +0000 (UTC) (envelope-from kargls@comcast.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=comcast.net header.s=20190202a header.b=sACQZwC+; dmarc=pass (policy=reject) header.from=comcast.net; spf=pass (mx1.freebsd.org: domain of kargls@comcast.net designates 2001:558:fd02:2446::4 as permitted sender) smtp.mailfrom=kargls@comcast.net Received: from resomta-h2p-554994.sys.comcast.net ([96.102.179.205]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 256/256 bits) (Client did not present a certificate) by resqmta-h2p-547392.sys.comcast.net with ESMTPS id OgMWvVQQjJAgsOgotvLXv9; Thu, 27 Nov 2025 18:34:19 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1764268459; bh=3TBJFAeDewMep9KhOaqnwT5cvTVnFDcBIvyxtEvnNbg=; h=Received:Received:Message-ID:Date:MIME-Version:Subject:To:From: Content-Type:Xfinity-Spam-Result; b=sACQZwC+HYmVCTe9p5DNjSmqHoftkbU0D9crlDCX8mblu3yDABxm3a8nj0RVwsykL FsC9QDutU6lx0RJM7O9reFsl4AWrS1iHrfbdQNT5hFE9HHAoLr+bA6O6Njt8GQPcGd /FRtfZQVRyAzQMkZZr+Q02oNIRlED9tXAZxcbzKI9wUC5bq7hu051jCsIxCdGGNOAz BilsA0xruF9w3p0h8U6PAOwKI/81q96u743kYNTxXP4FACnhoq1/kR9aVLju53+ZRq tYHWCU2jZA3b5uttggZ861QtNhFoHnLPv844KuytC3AXP0fo283tEXyRXfVROykvac W+hDplGJ/AeAw== Received: from [10.0.0.30] ([73.83.213.54]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 256/256 bits) (Client did not present a certificate) by resomta-h2p-554994.sys.comcast.net with ESMTPSA id Ogorvx33nZW4DOgosvaS9H; Thu, 27 Nov 2025 18:34:18 +0000 Message-ID: <61a97b08-f65e-471f-9f5a-8f78f7ec396d@comcast.net> Date: Thu, 27 Nov 2025 10:34:17 -0800 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 User-Agent: Mozilla Thunderbird Subject: Re: C23 support for libm To: freebsd-numerics@freebsd.org References: Content-Language: en-US From: Steve Kargl In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-CMAE-Envelope: MS4xfEZn6NZ+PABMwIc8ChqO3/cZW5lDfF/NEj0GtXtHrr516k8Ijhh4aUUzqY7enBjOoYTOOUO1Rg3iU3+MRokGxXNnBOJAAQd1/xJ8wXLCYUztiD5hXqEl P/xTIlZvUdfCJZ/pDe5nyVCBqqN3CbT/Or97yDYpg5JIjKTE20Z48bpvQIY9a7vLBxi8wWPeWHmcuw== X-Spamd-Bar: / X-Spamd-Result: default: False [-1.00 / 15.00]; HFILTER_HELO_5(3.00)[resqmta-h2p-547392.sys.comcast.net]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[comcast.net,reject]; R_SPF_ALLOW(-0.20)[+ip6:2001:558:fd02:2446::/64]; R_DKIM_ALLOW(-0.20)[comcast.net:s=20190202a]; MIME_GOOD(-0.10)[text/plain]; DWL_DNSWL_NONE(0.00)[comcast.net:dkim]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[]; FREEMAIL_FROM(0.00)[comcast.net]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_ONE(0.00)[1]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_ENVFROM(0.00)[comcast.net]; TO_DN_NONE(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[comcast.net:+]; MLMMJ_DEST(0.00)[freebsd-numerics@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:7922, ipnet:2001:558::/29, country:US]; RCVD_IN_DNSWL_NONE(0.00)[96.102.179.205:received] X-Rspamd-Queue-Id: 4dHQ7l6sbhz3GB8 On 11/27/25 09:31, Robert Clausecker wrote: > Greetings! > > I have started a project page [1] to track our effort to support C23 > on FreeBSD. Many new and exciting libm functions were added in this > standard revision, and it seems like so far we only have > {sin,cos,tan}pi{,f,l}() implemented (thanks to kargl for the work!) > > If anybody is interested in working on this, please let me know. > I am not an expert in numerical programming, but will try ot look > into adding some of these if nobody else comes forth. > Last time I looked, there are 6 or so functions from C99 that are still not implemented. I don't remember if new functions appeared in C11. I'll also suggest that pulling in functions from other projects (e.g., cephus) without thorough testing should be frowned upon. There are a few examples of this already in libm, which have accuracy issues and bugs. As usual and time permitting, I'll slowly peck away the unimplemented functions. -- steve