public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
* Crazy idea: provide special functions support as wrappers around the C++ ones
@ 2023-02-04 20:45 John Scott
  0 siblings, 0 replies; only message in thread
From: John Scott @ 2023-02-04 20:45 UTC (permalink / raw)
  To: libc-help

[-- Attachment #1: Type: text/plain, Size: 833 bytes --]

Hi,

ISO/IEC 24747:2009 specifies an interface for accessing special
functions from C, although I don't know offhand of any implementation of
it. C++17 includes most (all?) of these functions as a mandatory part of
the standard. Wouldn't it be neat if glibc would wrap these C++
functions when available to provide the functions from the
aforementioned standard?

Libraries such as MPFR, Arb, and GSL allow obtaining the values of
special functions for ordinary float, double, and long double types, but
they don't obey the usual C semantics of setting error indicators
according to math_errhandling and honoring the standard floating point
rounding direction, which makes them clunky and inconvenient to use in
combination with elementary functions.

Just thought I'd throw this idea out there.

Sincerely,
John

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-02-04 20:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-04 20:45 Crazy idea: provide special functions support as wrappers around the C++ ones John Scott

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).