-
Notifications
You must be signed in to change notification settings - Fork 4
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
The From<[u64;2]>
functions use big endian
#20
Comments
You are totally right that this should be documented more thoroughly. |
So you are going to keep it as big endian? I am curious about what the reason is. |
I am not sure if I want to keep it. |
After I submit my large pull request, can you convert the |
Specifically, I could do a pull request that has switched all the |
Hey Aaron, |
My stance is that a 0.3.0 release of apint after I finish the arithmetic rewrite will force users of this crate to rewrite a lot anyway and consider replacing certain things with new features. I've been letting the scope creep get in my way of finishing the arithmetic function rewrite and I will make sure that we have a clean commit history to work with before we start a little endian rewrite. |
I thought about this. |
I have gotten used to the little endian output of debug printed ApInts. I very strongly prefer little endian for any abstraction higher than a straight string of human readable numbers. Big endian also has performance implications since little endian is more natural for computers and programming alike. There would be a |
I say we do it and change the endianness as part of |
Okay for the sake of performance we maybe should do this. Or: We deprecate this API completely and replace it by something more explicit, like |
deprecation and adding |
I was writing unit tests when I found this out. I always use little endian (except when typing out literals), but if you are sure about this be sure to document it. In fact, there could be a section just about endianness.
The text was updated successfully, but these errors were encountered: