-
Notifications
You must be signed in to change notification settings - Fork 22
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
exp10(Dec128(0)) produces incorrect result #47
Comments
Oh weird, I see the same thing! This looks like it could be a bug in the underlying library. |
Yup, the source code // x is 0, return 1.0
res.w[BID_HIGH_128W] = 0x3040000000000000ull;
res.w[BID_LOW_128W] = 0;
BID_RETURN (res); whereas I think it should be I submitted a bug report to [email protected]. |
Even simpler, the code for |
Intel responded to confirm the problem:
|
@stevengj, do you know if the library was updated? Do we need to do anything to build the new version? |
I don't see any updates on Intel's website; I pinged them again via email to see what the timeframe is. Once we have an updated library (or we patch it ourselves if they don't update soon), we'll have to build new Mac and Windows binaries and post them on bintray. |
I just got an email from them that they plan a new release "within days." |
@stevengj, do you have an official diff/patch for the fix? I have the BinaryBuilder/BinaryProvider working for all platforms now, so we could apply the fix ourselves until Intel gets around to releasing the new version. |
I have an unofficial copy of version 20U2, but I'm not sure if I'm supposed to distribute it. They are allegedly going to post it within a week. In the meantime, you can just use my one-line patch |
Version 20U2 was just officially released: http://www.netlib.org/misc/intel/IntelRDFPMathLib20U2.tar.gz |
In April I submitted a PR to DecFPBuilder quinnj/DecFPBuilder#6 for updates to BinaryBuilder. I'm not sure if there have been any significant changes to BinaryBuilder since then. |
Fixed with #106 |
The text was updated successfully, but these errors were encountered: