Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is this supposed to be a drop-in replacement for libm? #216

Closed
epsilon-0 opened this issue Oct 23, 2020 · 1 comment
Closed

Is this supposed to be a drop-in replacement for libm? #216

epsilon-0 opened this issue Oct 23, 2020 · 1 comment

Comments

@epsilon-0
Copy link
Contributor

I am currently working on the Gentoo Port of this library and we have a mechanism for allowing swapping of libraries during runtime.

I was wondering if it was possible to replace the standard libm by the one provided here. Is this supposed to be API compatible with GNU/Clang libm implementations?

@kargl
Copy link
Contributor

kargl commented Oct 25, 2020

It likely is not a drop in replacement. You'll need to compare the functions supplied with your system's libm to those in openlibm. For example, GNU libm come with long double versions of the Bessel function routines; while openlibm does not appear to implements these. In additional, it would be prudent to compare the accuracy of the libm you are replacing against the accuracy of openlibm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants