-
Notifications
You must be signed in to change notification settings - Fork 28
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
Change package to use no_std
#20
Conversation
Or, if function isqrt(n) {
if (n < 2) return n;
const sc = isqrt(n >> 2) << 1, lc = sc + 1;
return lc * lc > n ? sc : lc;
} |
1). We also depend on "floor()" from 2). I think |
It's |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the updates. LGTM
This pull requests replaces all dependencies on libstd to dependencies on libcore and liballoc, so that this algorithm can be used on targets that do not have access to the standard library.