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

accuracy of long double functions #236

Open
zimmermann6 opened this issue Aug 3, 2021 · 8 comments
Open

accuracy of long double functions #236

zimmermann6 opened this issue Aug 3, 2021 · 8 comments

Comments

@zimmermann6
Copy link

with Openlibm 0.7.5 I still see the following issues for long double functions:

For all other functions, the maximal known error is 5.67 ulps
(see https://members.loria.fr/PZimmermann/papers/accuracy.pdf).

@ViralBShah
Copy link
Member

ViralBShah commented Sep 7, 2021

I think it may be time to pull new versions from msun. Are those known to work well?

@ViralBShah
Copy link
Member

ViralBShah commented Sep 12, 2021

@zimmermann6 Is it possible for you to also test Julia in your comparisons? Julia increasingly does not rely on openlibm, but has native implementations. I would expect your test harness is C based, and so if Julia's libm exposed a C interface, you may be able to test Julia as well - and otherwise it would be difficult.

@zimmermann6
Copy link
Author

if you tell me how to build a libm.a file for Julia (for x86_64 Linux) I can try

@ViralBShah
Copy link
Member

Thanks. I'll need to put something together and send you instructions. May take me a few days to get there.

@zimmermann6
Copy link
Author

Thanks. I'll need to put something together and send you instructions. May take me a few days to get there.

any progress on that?

@ViralBShah
Copy link
Member

Sorry - I haven't had the time to work on this.

@ViralBShah
Copy link
Member

@zimmermann6 Are there open source implementations (MIT/BSD) that you are aware of that we can pull in to improve these functions?

@zimmermann6
Copy link
Author

yes, on https://core-math.gitlabpages.inria.fr/ you will find such implementations (under a MIT license). Currently we have all C99 single precision functions implemented (correctly rounded) except the powf function (work in progress). Other formats will follow. Performance is comparable (if not better) to the GNU libc and the Intel Math library (which are not correctly rounded).

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

2 participants