-
Notifications
You must be signed in to change notification settings - Fork 204
Alternative 2: Suffix renamings (_n suffix) #446
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
Conversation
bb44dd7
to
b14b76c
Compare
Is this _n suffix acceptable for you? The root function was called n_root before. I think the _d suffix should be reserved for digits. |
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.
Yes, the 'n' suffix is OK to me. As type, I would prefer 'unsigned int' or 'unsigned long', since 'n' suggests a positive number: I don't want to check for n < 0 in every function, returning MP_VAL in this case. But ... that's OK for another PR
Yes, we also had the unsigned discussion in #437. Let's keep things separate. |
@sjaeckel I guess you prefer this over alternative 1? Ready from my side. |
I am not sure, that's why I left them both untouched. Does this block you? |
This is not a big blocker. Maybe a bit for #430. But at at some point we have to resolve this. |
d2b56d0
to
793b625
Compare
793b625
to
699573f
Compare
Okay, so you think we should go with this version?! :) I'm fine with this version of the API. Now let's head for 2.0 with this version as there are still some discussions upcoming e.g. regarding unsigned arguments. |
I don't really care, but having it like this leaves the door open for all-mp_int functions. |
This is for 2.0. but we should backport the renaming/deprecation. That's all for 1.x |
What do you mean by that? Can this be merged? |
as soon as it's rebased |
e69b8c2
to
41eca34
Compare
alternative to #437