-
Notifications
You must be signed in to change notification settings - Fork 194
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
Barrett todecimal #331
Barrett todecimal #331
Conversation
that uses Barrett reduction to speed up stringifying large integers.
buffer like `mp_toradix` does.
c6b9503
to
69d57ff
Compare
that uses MP_HAS to decide whether to use `mp_toradix` or `s_mp_todecimal_fast`.
69d57ff
to
f84b69c
Compare
@minad @czurnieden @sjaeckel how does this look? I'm in the process of adding tests, but I'm not sure about documentation. How much is needed and where does it go? |
Looks good! The CI should be green and we need tests. You can test against mp_toradix for random numbers. |
@minad The two problems in travis are the same, but I'm not exactly sure how to fix them.
However, stdio.h is already included. Some googling suggests other people have seem similar problems and it's some weird thing about different versions of header files. Do you have any suggestions? |
Snprintf should not be used. |
closed again in favor of #330 |
#330, but rebased onto feature-detection2 so
mp_todecimal
can be converted into a function that usesMP_HAS
to selectively use the news_mp_todecimal_fast
.