-
Notifications
You must be signed in to change notification settings - Fork 89
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
performance vs GMP? negative number support? #18
Comments
Hi @timotheecour and thanks for your interest in this project :)
I've made no performance comparisons, and know of none others have done. I suspect this library is much slower than GMP in almost all cases.
No plans for implementing negative numbers, but I don't think it would require much though. Without having thought about it much, I think it's mostly an issue of how you input/output the negative numbers, as the underlying math mostly works out-of-the-box on unsigned representation of a negative number. E.g. -1 represented as MAX (i.e. 0 - 1 becomes MAX because of underflow/wrapping). See also this issue: #3 Did that make sense to you? I am having a hard time explaining my thoughts about this in writing at the moment... |
Hi again @timotheecour I will close this issue now, after seeing your thumbs-up emoji 👍 Feel free to reopen if you feel for it :) |
are there any links to performance comparisons against GMP?
is there any planned work to support negative integers?
links
see also ilia3101/Big-Integer-C#1
The text was updated successfully, but these errors were encountered: