From nobody Thu Nov 27 17:31:11 2025 X-Original-To: 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 4dHNkn5JWyz6HhLv for ; Thu, 27 Nov 2025 17:31:13 +0000 (UTC) (envelope-from fuz@fuz.su) Received: from fuz.su (fuz.su [IPv6:2001:41d0:8:e508::1]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "fuz.su", Issuer "fuz.su" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dHNkn1wvLz4LjW for ; Thu, 27 Nov 2025 17:31:13 +0000 (UTC) (envelope-from fuz@fuz.su) Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of fuz@fuz.su designates 2001:41d0:8:e508::1 as permitted sender) smtp.mailfrom=fuz@fuz.su Received: from fuz.su (localhost [127.0.0.1]) by fuz.su (8.18.1/8.18.1) with ESMTPS id 5ARHVBw6059359 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Thu, 27 Nov 2025 18:31:12 +0100 (CET) (envelope-from fuz@fuz.su) Received: (from fuz@localhost) by fuz.su (8.18.1/8.18.1/Submit) id 5ARHVBg0059358 for numerics@freebsd.org; Thu, 27 Nov 2025 18:31:11 +0100 (CET) (envelope-from fuz) Date: Thu, 27 Nov 2025 18:31:11 +0100 From: Robert Clausecker To: numerics@freebsd.org Subject: C23 support for libm Message-ID: 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+a:c]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; ASN(0.00)[asn:16276, ipnet:2001:41d0::/32, country:FR]; MIME_TRACE(0.00)[0:+]; FREEFALL_USER(0.00)[fuz]; MISSING_XM_UA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[numerics@freebsd.org]; DMARC_NA(0.00)[fuz.su]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[numerics@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_ONE(0.00)[1] X-Rspamd-Queue-Id: 4dHNkn1wvLz4LjW 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. Yours, Robert Clausecker [1]: https://wiki.freebsd.org/C23 -- () ascii ribbon campaign - for an encoding-agnostic world /\ - against html email - against proprietary attachments 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 From nobody Thu Nov 27 18:53:06 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 4dHQYS2kVXz6Hrjm for ; Thu, 27 Nov 2025 18:53:16 +0000 (UTC) (envelope-from kargls@comcast.net) Received: from resqmta-c2p-569299.sys.comcast.net (resqmta-c2p-569299.sys.comcast.net [IPv6:2001:558:fd00:56::a]) (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 4dHQYQ6VnGz3JfP for ; Thu, 27 Nov 2025 18:53:14 +0000 (UTC) (envelope-from kargls@comcast.net) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=comcast.net header.s=20190202a header.b=L3Bz7grU; dmarc=pass (policy=reject) header.from=comcast.net; spf=pass (mx1.freebsd.org: domain of kargls@comcast.net designates 2001:558:fd00:56::a as permitted sender) smtp.mailfrom=kargls@comcast.net Received: from resomta-c2p-555441.sys.comcast.net ([96.102.18.240]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 256/256 bits) (Client did not present a certificate) by resqmta-c2p-569299.sys.comcast.net with ESMTPS id Oh60vTSTgChEbOh76vcvFJ; Thu, 27 Nov 2025 18:53:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=20190202a; t=1764269588; bh=TEF+pVYRIeArFxmQvWW+0QVoL4eu7ZHVLnF7RP0AR6c=; h=Received:Received:Message-ID:Date:MIME-Version:Subject:To:From: Content-Type:Xfinity-Spam-Result; b=L3Bz7grUJjwkr7vdRjE0ac/TPl62lQfq7zp/+iLleVmS0KKReeyJ7340QmbeWgnfQ D2OxJHynQU7zrRYAbvKBD48gQP2qGkcO+Cgqs93nJCU9Af2Ya9awtT6CALU/ITlx7f RvLSiZeOBI0582+oEyNcOSH78Qq24PS7UNHQeM3EUjMFBleQeGurmNq8HQmZrWiPwS zGOxs1nR7QpL9aaPeqXFKknS6SN6V/+HNIb/Vv9w4EbEXmyz4niUawBdZTEyyodciy zfRiQhQTaO6wMd4UmNzwkXi+KgIsuqIx3rRvqAH0yBDgFppErTcPD4cXSQ/k8o23zN XPzsO9pdACZWQ== 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-c2p-555441.sys.comcast.net with ESMTPSA id Oh74vS2DOfkptOh75vzYXa; Thu, 27 Nov 2025 18:53:08 +0000 Message-ID: <97ced5df-afb2-4f40-a01b-67cc6b16c2ab@comcast.net> Date: Thu, 27 Nov 2025 10:53:06 -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: MS4xfEhI1M/2hyRCuyvvtXTiXo5y1XZyqsaxvp7rNFeUwslYCypUQav1HLglqKVAgIMUGQlDI7H1cXJ5mzeqyphJVPgD+LLU+UI9W0fIy4LPWVbRbVpcmN7a HK3dfjeOxgri28z81dja97X01+aFn7FMqwJt5jM+fim+PHNVGad7k3kAuvJGd3D28+jbmMT5CryTeQ== X-Spamd-Bar: / X-Spamd-Result: default: False [-1.00 / 15.00]; HFILTER_HELO_5(3.00)[resqmta-c2p-569299.sys.comcast.net]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[comcast.net,reject]; R_SPF_ALLOW(-0.20)[+ip6:2001:558:fd00:56::/64]; R_DKIM_ALLOW(-0.20)[comcast.net:s=20190202a]; MIME_GOOD(-0.10)[text/plain]; RCVD_TLS_ALL(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; FREEMAIL_FROM(0.00)[comcast.net]; FROM_HAS_DN(0.00)[]; ASN(0.00)[asn:7922, ipnet:2001:558::/29, country:US]; DWL_DNSWL_NONE(0.00)[comcast.net:dkim]; 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]; BLOCKLISTDE_FAIL(0.00)[96.102.18.240:server fail,2001:558:fd00:56::a:server fail,73.83.213.54:server fail]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_ENVFROM(0.00)[comcast.net] X-Rspamd-Queue-Id: 4dHQYQ6VnGz3JfP 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. > > Yours, > Robert Clausecker > > [1]: https://wiki.freebsd.org/C23 > Forgot to mention. I looked at checked the wiki page. It might be appropriate to add any missing complex.h functions to the list (if there are any). -- steve From nobody Thu Nov 27 19:00: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 4dHQkB4kBNz6Hsry for ; Thu, 27 Nov 2025 19:00:50 +0000 (UTC) (envelope-from fuz@fuz.su) Received: from fuz.su (fuz.su [IPv6:2001:41d0:8:e508::1]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "fuz.su", Issuer "fuz.su" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dHQkB0BfNz3Jym for ; Thu, 27 Nov 2025 19:00:49 +0000 (UTC) (envelope-from fuz@fuz.su) Authentication-Results: mx1.freebsd.org; none Received: from fuz.su (localhost [127.0.0.1]) by fuz.su (8.18.1/8.18.1) with ESMTPS id 5ARJ0Vk3059692 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 27 Nov 2025 20:00:31 +0100 (CET) (envelope-from fuz@fuz.su) Received: (from fuz@localhost) by fuz.su (8.18.1/8.18.1/Submit) id 5ARJ0V2e059691; Thu, 27 Nov 2025 20:00:31 +0100 (CET) (envelope-from fuz) Date: Thu, 27 Nov 2025 20:00:31 +0100 From: Robert Clausecker To: Steve Kargl Cc: freebsd-numerics@freebsd.org Subject: Re: C23 support for libm Message-ID: References: <97ced5df-afb2-4f40-a01b-67cc6b16c2ab@comcast.net> 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <97ced5df-afb2-4f40-a01b-67cc6b16c2ab@comcast.net> X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4dHQkB0BfNz3Jym Hi Steve, Once again I would like to thank you for your great work! I'll check which functions are missing and add them to the list. I would perhaps try to do the new ordering functions, as they should not suffer from accuracy issues. Yours, Robert Clausecker Am Thu, Nov 27, 2025 at 10:53:06AM -0800 schrieb Steve Kargl: > 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. > > > > Yours, > > Robert Clausecker > > > > [1]: https://wiki.freebsd.org/C23 > > > > Forgot to mention. I looked at checked the wiki page. > It might be appropriate to add any missing complex.h > functions to the list (if there are any). > > -- > steve > -- () ascii ribbon campaign - for an encoding-agnostic world /\ - against html email - against proprietary attachments From nobody Thu Nov 27 21:04:23 2025 X-Original-To: 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 4dHTSp5hqGz6J6tp for ; Thu, 27 Nov 2025 21:04:26 +0000 (UTC) (envelope-from Paul.Zimmermann@inria.fr) Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.inria.fr", Issuer "GEANT TLS RSA 1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dHTSn4hqDz3bNP for ; Thu, 27 Nov 2025 21:04:25 +0000 (UTC) (envelope-from Paul.Zimmermann@inria.fr) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=inria.fr header.s=dc header.b=dondTgX7; dmarc=pass (policy=none) header.from=inria.fr; spf=pass (mx1.freebsd.org: domain of Paul.Zimmermann@inria.fr designates 192.134.164.104 as permitted sender) smtp.mailfrom=Paul.Zimmermann@inria.fr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:message-id:from:to:cc:in-reply-to:subject: references; bh=x913v2Pp1Co2S2j9QN3i+bWZmCjFyzsmRmW6SOqpe4w=; b=dondTgX70YenCtLIdL922i174hMvTgavtgH5yBzibJ7PsSyR7lJPnwZS Ug6kMVU6uz8A1faAaaGsCvEwoznEww3GO+KsoZ3MvbgLzqbM/6l8Z595g eiHQYWsAIesTRl7t3cxUXVm3OKfCPfvVd/R7qnMQFyEsJP4+J4p4zT7Zu E=; X-CSE-ConnectionGUID: JG2U8NRjT1WtpC8elNETaw== X-CSE-MsgGUID: dXRhYOPbTIGQtWXURR6E3A== Received-SPF: SoftFail (mail3-relais-sop.national.inria.fr: domain of Paul.Zimmermann@inria.fr is inclined to not designate 152.81.2.78 as permitted sender) identity=mailfrom; client-ip=152.81.2.78; receiver=mail3-relais-sop.national.inria.fr; envelope-from="Paul.Zimmermann@inria.fr"; x-sender="Paul.Zimmermann@inria.fr"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 include:mailout.safebrands.com a:basic-mail.safebrands.com a:basic-mail01.safebrands.com a:basic-mail02.safebrands.com ip4:128.93.142.0/24 ip4:192.134.164.0/24 ip4:128.93.162.160 ip4:128.93.162.3 ip4:128.93.162.88 ip4:89.107.174.7 mx ~all" Received-SPF: None (mail3-relais-sop.national.inria.fr: no sender authenticity information available from domain of postmaster@araignee) identity=helo; client-ip=152.81.2.78; receiver=mail3-relais-sop.national.inria.fr; envelope-from="Paul.Zimmermann@inria.fr"; x-sender="postmaster@araignee"; x-conformance=spf_only X-IronPort-AV: E=Sophos;i="6.20,232,1758578400"; d="scan'208";a="132148812" Received: from araignee.loria.fr (HELO araignee) ([152.81.2.78]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Nov 2025 22:04:23 +0100 Date: Thu, 27 Nov 2025 22:04:23 +0100 Message-Id: From: Paul Zimmermann To: Robert Clausecker Cc: numerics@freebsd.org In-Reply-To: (message from Robert Clausecker on Thu, 27 Nov 2025 18:31:11 +0100) Subject: Re: C23 support for libm References: X-Spamd-Bar: ------ X-Spamd-Result: default: False [-6.80 / 15.00]; DWL_DNSWL_MED(-2.00)[inria.fr:dkim]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[inria.fr,none]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:192.134.164.0/24]; RCVD_IN_DNSWL_MED(-0.20)[192.134.164.104:from]; R_DKIM_ALLOW(-0.20)[inria.fr:s=dc]; RWL_MAILSPIKE_GOOD(-0.10)[192.134.164.104:from]; MIME_GOOD(-0.10)[text/plain]; MLMMJ_DEST(0.00)[numerics@freebsd.org]; TO_DN_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; MISSING_XM_UA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:2200, ipnet:192.134.164.0/24, country:FR]; ARC_NA(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_COUNT_ONE(0.00)[1]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[inria.fr:+] X-Rspamd-Queue-Id: 4dHTSn4hqDz3bNP 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 Hi Robert, note that all new C23 functions are available in CORE-MATH (with correct rounding): https://core-math.gitlabpages.inria.fr/ The MIT license should enable easy integration into Newlib. Paul Zimmermann > Date: Thu, 27 Nov 2025 18:31:11 +0100 > From: Robert Clausecker > > 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. > > Yours, > Robert Clausecker > > [1]: https://wiki.freebsd.org/C23 > > -- > () ascii ribbon campaign - for an encoding-agnostic world > /\ - against html email - against proprietary attachments > > From nobody Thu Nov 27 21:11:37 2025 X-Original-To: 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 4dHTdJ0fY0z6J8Fr for ; Thu, 27 Nov 2025 21:11:48 +0000 (UTC) (envelope-from fuz@fuz.su) Received: from fuz.su (fuz.su [IPv6:2001:41d0:8:e508::1]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "fuz.su", Issuer "fuz.su" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dHTdH1mK9z3bcZ for ; Thu, 27 Nov 2025 21:11:47 +0000 (UTC) (envelope-from fuz@fuz.su) Authentication-Results: mx1.freebsd.org; none Received: from fuz.su (localhost [127.0.0.1]) by fuz.su (8.18.1/8.18.1) with ESMTPS id 5ARLBbYC060218 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Thu, 27 Nov 2025 22:11:38 +0100 (CET) (envelope-from fuz@fuz.su) Received: (from fuz@localhost) by fuz.su (8.18.1/8.18.1/Submit) id 5ARLBbw7060217; Thu, 27 Nov 2025 22:11:37 +0100 (CET) (envelope-from fuz) Date: Thu, 27 Nov 2025 22:11:37 +0100 From: Robert Clausecker To: Paul Zimmermann Cc: numerics@freebsd.org Subject: Re: C23 support for libm Message-ID: References: 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 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Queue-Id: 4dHTdH1mK9z3bcZ Hi Paul Am Thu, Nov 27, 2025 at 10:04:23PM +0100 schrieb Paul Zimmermann: > Hi Robert, > > note that all new C23 functions are available in CORE-MATH (with correct > rounding): > > https://core-math.gitlabpages.inria.fr/ > > The MIT license should enable easy integration into Newlib. I checked some functions and couldn't find them: pown(), powr(), rootn(), fromfpx(), nextup(), nextdown(). It seems like only a small set of the new C23 functions are supported by this project. Neverthless, those might be a useful import, but I'll leave that to kargl, as I am not an expert on numerical programming. > Paul Zimmermann Yours, Robert Clausecker -- () ascii ribbon campaign - for an encoding-agnostic world /\ - against html email - against proprietary attachments From nobody Fri Nov 28 07:36:07 2025 X-Original-To: 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 4dHlTl6FRMz6JK2y for ; Fri, 28 Nov 2025 07:36:11 +0000 (UTC) (envelope-from Paul.Zimmermann@inria.fr) Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.inria.fr", Issuer "GEANT TLS RSA 1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dHlTk2MN2z3s0p for ; Fri, 28 Nov 2025 07:36:10 +0000 (UTC) (envelope-from Paul.Zimmermann@inria.fr) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=inria.fr header.s=dc header.b=pzskbjOW; dmarc=pass (policy=none) header.from=inria.fr; spf=pass (mx1.freebsd.org: domain of Paul.Zimmermann@inria.fr designates 192.134.164.83 as permitted sender) smtp.mailfrom=Paul.Zimmermann@inria.fr DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:message-id:from:to:cc:in-reply-to:subject: references; bh=3L/GOqGKghxw7+va7dDeh1NmuQZwaCoLuw8rTOGc0Ak=; b=pzskbjOW6ZCiyHeLJ4Ye3iJz7d3f5FMIzsF+4SgVIvA2ygbczQNlKqo/ DsWNHGBW2EX8xDC73uoJEkRnxtBSv2V4v+C2nRSg8YuMJU2rY1wVxgjwe kym4jkYAGzwDxZI34IkZcX/s54fuZzfRWaFdtg1xfbTMfgxu3jYHdRM6v 4=; X-CSE-ConnectionGUID: rvDrY1q0RQ21is66161HvA== X-CSE-MsgGUID: LTbEe5oLSBa+N2YTZ+g/4Q== Received-SPF: SoftFail (mail2-relais-roc.national.inria.fr: domain of Paul.Zimmermann@inria.fr is inclined to not designate 152.81.2.78 as permitted sender) identity=mailfrom; client-ip=152.81.2.78; receiver=mail2-relais-roc.national.inria.fr; envelope-from="Paul.Zimmermann@inria.fr"; x-sender="Paul.Zimmermann@inria.fr"; x-conformance=spf_only; x-record-type="v=spf1"; x-record-text="v=spf1 include:mailout.safebrands.com a:basic-mail.safebrands.com a:basic-mail01.safebrands.com a:basic-mail02.safebrands.com ip4:128.93.142.0/24 ip4:192.134.164.0/24 ip4:128.93.162.160 ip4:128.93.162.3 ip4:128.93.162.88 ip4:89.107.174.7 mx ~all" Received-SPF: None (mail2-relais-roc.national.inria.fr: no sender authenticity information available from domain of postmaster@araignee) identity=helo; client-ip=152.81.2.78; receiver=mail2-relais-roc.national.inria.fr; envelope-from="Paul.Zimmermann@inria.fr"; x-sender="postmaster@araignee"; x-conformance=spf_only X-IronPort-AV: E=Sophos;i="6.20,232,1758578400"; d="scan'208";a="251686674" Received: from araignee.loria.fr (HELO araignee) ([152.81.2.78]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Nov 2025 08:36:07 +0100 Date: Fri, 28 Nov 2025 08:36:07 +0100 Message-Id: From: Paul Zimmermann To: Robert Clausecker Cc: numerics@freebsd.org In-Reply-To: (message from Robert Clausecker on Thu, 27 Nov 2025 22:11:37 +0100) Subject: Re: C23 support for libm References: X-Spamd-Bar: ------- X-Spamd-Result: default: False [-7.07 / 15.00]; DWL_DNSWL_MED(-2.00)[inria.fr:dkim]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.97)[-0.974]; DMARC_POLICY_ALLOW(-0.50)[inria.fr,none]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; RWL_MAILSPIKE_EXCELLENT(-0.40)[192.134.164.83:from]; R_SPF_ALLOW(-0.20)[+ip4:192.134.164.0/24]; RCVD_IN_DNSWL_MED(-0.20)[192.134.164.83:from]; R_DKIM_ALLOW(-0.20)[inria.fr:s=dc]; MIME_GOOD(-0.10)[text/plain]; TO_DN_SOME(0.00)[]; ASN(0.00)[asn:2200, ipnet:192.134.164.0/24, country:FR]; MISSING_XM_UA(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; RCPT_COUNT_TWO(0.00)[2]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; MLMMJ_DEST(0.00)[numerics@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DKIM_TRACE(0.00)[inria.fr:+] X-Rspamd-Queue-Id: 4dHlTk2MN2z3s0p 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 Hi Robert, > > note that all new C23 functions are available in CORE-MATH (with correct > > rounding): > > > > https://core-math.gitlabpages.inria.fr/ > > > > The MIT license should enable easy integration into Newlib. > > I checked some functions and couldn't find them: > pown(), powr(), rootn(), fromfpx(), nextup(), nextdown(). > It seems like only a small set of the new C23 functions are supported > by this project. Neverthless, those might be a useful import, but > I'll leave that to kargl, as I am not an expert on numerical programming. we mainly focus on functions with real arguments only: acospi, asinpi, atanpi, atan2pi, compound, cospi, sinpi, tanpi, exp10m1, exp2m1, log10p1, log2p1, rsqrt. I let you judge whether this is a small or large set :-) They should be straightforward to import, since each function has its own foo.c file, without any dependency. Anyway, we will be happy to hear about issues with the integration if any. Best regards, Paul