Re: [PATCH 2/3] libm: Remove __ieee754_gamma_r variants

Keith Packard via Newlib <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
Fabian Schriever <[email protected]> writes:

> Hi Keith,
>
> We welcome your efforts to clean up - and correct the error return 
> values of - the gamma/lgamma/tgamma families.

Thanks! I'm doing continuous integration testing as a part of embedded
toolchain support for RISC-V as part of my SiFive dayjob; fixing bugs
like this is part of that process.

> We would favor the removal of all non C/POSIX(+XSI)-standard functions 
> from the interface.

Oh, that's probably the best idea of all. Applications should not be
using 'gamma' at all given the different definitions over time and
space.

Any thoughts about the newlib __ieee754 interfaces? Those are
essentially the same as the C/POSIX interfaces but do not use errno or
other global variables, reporting exceptions only through the fenv API.

> If something was changed in 2002, that is working incorrectly and no one 
> found out until now, that is also not part of any standard, it suggests 
> that no one is actually using it and should be able to be safely 
> removed. Does Newlib have a policy to remove elements?

I don't think it's 'newlib' which would need any policy; newlib is used
downstream in a wide variety of projects, including cygwin and picolibc,
which may have separate policies. Cygwin has binary interface
definitions, changing those could affect applications there.

I'm using newlib as part of picolibc which is used for embedded
toolchains where removing things from the ABI to fix bugs would be just
fine.

> An interesting discussion about the standard lgamma/tgamma functions 
> would be to discuss accuracy improvements in line with the glibc 
> improvements from Joseph Myers (see 
> https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=050f29c18873ec05ba04a4034bed8cb3f6ae4463).

I read through that patch and agree that it would be nice to incorporate
something similar. We need to be cautious as code cannot be directly
brought in from glibc due to licensing differences.

-- 
-keith
signature.asc (application/pgp-signature, 832 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEw4O3eCVWE9/bQJ2R2yIaaQAAABEFAl9Og3gACgkQ2yIaaQAA
ABFbhg//Q7/XyYhNNRk+TBcEjJAGv+37DdjJCgftIL/XusyvPWBHWyLf35OsrDG7
Sw312k49nnq8Kbpn9qKltLdN0+tlc1h8/+LYZDYYvkqdAWCmAJd7+TynedeVyrtu
k1oZO6MQlGDIyCxQGh4HJbxar7kkm6RZlbnXjyxN6rhVqU0pmAvKnSUmQvKXQMto
QZsWCH/ALtVDUPqqHTqVlcHM0oTLJRRnqDw31RF06t7lnL9IZHQqHlNmQYW7mooI
8rC1f054skVzgKx+NH4+FGIVkGktErsvdC8Vxo1bPM67D0y1gXagHINnMUw9EddP
un0Z4f/Q4Na5vW9D2MKjnLM94fH5sHXPi5RfRbTNZRqTTQy3qRjsn5odDxEPpO1l
iOq/5zlcv0mQ8EKUOo1YqRiwmVXvCV4a8kNvkvDO+Sd7/tcSzcE8wWPHm663vD27
t20d0cLW6Ou3ioi92xrLp0thmGuXzslV8OkB62eg/l3CgU96GSLmfmcrva2MZB+N
vIIc/ZgS94hKMsE9aqqdktkN3+/8lCniQjQ1za5zxyMNLNtAPJhvZdEs3zNjxJoF
mD9HTn2mfGyvfbJc4ghXAGw8wyyyoGv/jW9aoB5FB0AUUkk9aTRQJKr+xfjI/Myf
FHl3WDG4h/4+G6c80dwpGIVSfKA6e4In9hqvGrm6geCUPEUdFak=
=KKXj
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.