-
Notifications
You must be signed in to change notification settings - Fork 723
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
Require __BYTE_ORDER__ to be defined for bi-endian target architectures. #1885
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1885 +/- ##
=======================================
Coverage 96.02% 96.02%
=======================================
Files 136 136
Lines 20776 20776
Branches 226 226
=======================================
Hits 19950 19950
Misses 792 792
Partials 34 34 ☔ View full report in Codecov by Sentry. |
43a0b4e
to
1bbb0c5
Compare
cc @uweigand @erichte-ibm @pkubaj. The basic idea here is to ensure that |
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.
maybe off-topic but isn't mipsel
little-endian?
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.
LGTM - though please see suggestion about comment.
MIPS is bi-endian, so although mipsel is the little-endian variant, OPENSSL_MIPS is insufficient on it own to uniquely identify the target elsewhere in the code. That's why BYTE_ORDER is needed too, and the purpose of this PR is to make sure that is set for bi-endian target architectures where this uncertainty exists. Perhaps it would be clearer to prepend 'Require BYTE_ORDER to be defined for bi-endian target architectures.' to the comment block starting on line 45, and to replace 'big-endianness' with 'endianness'. |
I implemented this suggestion. |
Thanks for reviewing this. I really appreciate it. |
No description provided.