druntime, posix: Add bindings for POSIX endian.h - #21644
Merged
Merged
Conversation
|
Thanks for your pull request, @ibuclaw! Bugzilla referencesYour PR doesn't reference any Bugzilla issue. If your PR contains non-trivial changes, please reference a Bugzilla issue or create a manual changelog.
|
This is part of the IEEE Std 1003.1 Issue 8 https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/endian.h.html On a spot check of OS's, amongst Linux, OSX and *BSDs, many already had these in `endian.h` prior to it becoming standard. Of those which have omissions to the spec: - OSX 12 doesn't define the `hto*`, `be*`, and `le*` macros - Solaris 11.4 doesn't have the header at all. But that doesn't matter as this is meant to be a macro-only header, and the implementation is obvious for all platforms.
ibuclaw
force-pushed
the
endian_bindings
branch
from
August 3, 2025 17:32
5626a68 to
1741fba
Compare
thewilsonator
approved these changes
Aug 3, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is part of the IEEE Std 1003.1 Issue 8
https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/endian.h.html
On a spot check of OS's, amongst Linux, OSX and *BSDs, many already had these in
endian.hprior to it becoming standard.Of those which have omissions to the spec:
hto*,be*, andle*macrosBut that doesn't matter as this is meant to be a macro-only header, and the implementation is obvious for all platforms.