Re: issue with tgammaf

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

> thank you Keith. For your information I have updated my comparison with
> Newlib 3.3.0:
>
> https://members.loria.fr/PZimmermann/papers/accuracy.pdf
>
> The differences with the previous (unknown) version of Newlib I used are
> that j1 is less accurate (largest error goes from 2.66e6 ulps to 1.68e7 ulps),
> and y1 is more accurate (largest error goes from 4.65e8 ulps to 6.18e6 ulps).
> (However, those huge errors simply tell us that j1f is completely off, in the
> first case for x=0x6.cfd78p+100 j1f returns 0 instead of -0x1p-52.)
>
> I am still unable to compile a program using lgammaf:

You might have more luck with lgammaf_r as that avoids use of
_impure_ptr in newlib.

Alternatively, you can use the picolibc fork of newlib which uses native
thread local storage instead of a giant struct full of library global
data. That has built-in support for compiling on x86_64 for testing.

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

iQIzBAEBCAAdFiEEw4O3eCVWE9/bQJ2R2yIaaQAAABEFAl9iK7YACgkQ2yIaaQAA
ABFYlA/+LdGNFOq8ro4ccCz1l4CAXXZQvallqJLVzVnrfsuNylQPaWDOxRVtwmGw
dC6NVhCMJC7MFJbE/ThgweZ9Dcu9QvrB9Li3LfcGBoMoutRq8RUOErJ65NuyZO00
TWs4JOSTJUsJAD8XmvSvbTaPvjGsj1xaVoe/DsCD0x75MqSiwi5lZ2OfXLzrKf2u
udIblpoF2rMWAFPSAIPFqUODSRGMRhoSeHnyppyNGLp71wuAVAXwuynFXmDmWp+d
YhCj8fkW0ckUTJX8n7RJirnlJxyucIaHcT3ap/Q0JVRM/C4PWYMRU/XU4j6YhrJu
+LMT6JxXUmuPM7kyJgGZOtadvVoRn8XMyEtdyJpu963S1LdlT429ZI7RqFhfvODZ
Bnsvr3vvHf3kQ13Dojbu8xS/9+6XEGM4F8W1MrmwSyvHjecbefJ5ulGxsHYniBQW
ug1IGvuNhKjgiWYJsc7aWG7OwyQyqrg9WGZTjJ1sbfocdRmV4E9MH/Y9lyMVbds+
E3a3bP54zhP9ZxZIzi9YlBiFq8kfr0cmmPSeIH9PsYLGvbfHUg1P89z+5MOMqag0
VGYRZCjRLgDGNXeYHWylC3wTFwyXeZ0pg1hUKXpN7e6m+beyZyTfYUVp6DnYObzc
pPslqTGfdHv7glbAhe0NIpZJEAzQNRdZAEA+yEw3NWymDsi72Rs=
=VfWQ
-----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.