Re: Fw: [PATCH 0/3] libm: Clean up gamma functions
Keith Packard via Newlib <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
Brian Inglis <[email protected]> writes: > I don't get so don't do maths above my comfort level: but it is possible that > ORs in the specs could mean that some important implementations (e.g BSD and > glibc) may differ in errors reported depending on which, possibly different, > exceptional input values are passed. You could check the BSD and glibc specs and > tests for these functions to see what the expected outputs are for what inputs, > what exceptional values generate which errno values, and whether all > possibilities are allowed by all the specs. POSIX always defers to C where the > latter defines library implementations, but as long as they do not contradict > normative content, POSIX may add additional conditions or > requirements. Yeah, my testing could be more permissive to allow any valid implementation to pass. Right now, I'm interested in making newlib compliant with the relevant specs and, where that doesn't conflict, compatible with glibc. And that means having hard requirements that match glibc -- I haven't found any places where glibc gets the wrong answer at least... There's one place where that's a bit hard -- the gamma function has changed meaning over time and the current newlib gamma implementation is closer to the BSD one than glibc, but implements neither exactly. -- -keith
signature.asc
(application/pgp-signature, 832 B)
-----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEw4O3eCVWE9/bQJ2R2yIaaQAAABEFAl9JOzIACgkQ2yIaaQAA ABFiug/+Pf5TzCK7w1e5mqY8tm8nNWpJTxh6Q3mlDycdnZTjRo/0DBPnNoKZSO5W U80MerwMyfuBmryceobLYxQBT/qzwmSqNOE+FHRpAca6T1jf4QsHf5TTT1FjbMld vAxmMUmu5zfA7DF05zSI0xqLjYU9SChhiP40sqixAz6y6H1Pga9A1/OhMAfaOAbU 1RKxZHL20KPBoWvtDdmReOAPbx9dP8gXcsJrW4Z3ZF5i4twDs9Kk6x9eaCRVeAgO jA72kQjIuRLLYsIMjDj3YTOTTX5eiqrHVTUqOeSHlj58mzdtD5WczF6PfnzrtJuI LuJ51OKLRHHpjCU7Vr+nlEJ2jnG79ceGo/JezrHata9rI5LCemsHS0vMOvsIDSZ2 UhwWEenaflJ5u8Z7TAY9oKmNko4C+grN8mwf8AfmuEzHIpAchan42dJgNBNSZkwN By1AbEjpTohCmLxZQmRQH6rBzBmtl08jxqyKWJgE3cfFKMPyhT0TbEPImO7fgFro zrEcBUI5bykz3NGq/uALgqsA0dypQUHnEfKQJcmIms0HAWGwxUHYYRhwll8vzQah n03xYGKHfubKPNTYlAYDUo+6MFKeEP2qSasWmmShfP/aPUXl6o4llEINvt+nK1RL puCbRRpKSYic3sZ5g5x9rPdX649E4aU07kDquS0bGZxfclR+fLw= =g5ze -----END PGP SIGNATURE-----