-
Notifications
You must be signed in to change notification settings - Fork 699
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
Hard code endianness #649
Hard code endianness #649
Conversation
Interesting, thanks! |
0ca7fa5
to
afd6cca
Compare
I'm getting the following when trying to pull your branch:
Similar result when checking out via github CLI, it only shows me a single commit with all source code smushed into one blob. Did you do any unorthodox git mangling on your repo that could cause this? |
I don't believe so. Did you try |
I tried pushing a fixup, but it seems like you have maintainer edits disabled? Anyways, I removed the generic fallback and added you good writeup to the commit message: 1a5ff41 Let me know if you want to force push that into your branch or if I should make a new PR. |
Apparently this isn't supported for org-owned forks at the moment.
Whatever is easier for you, is fine with me. |
See #662. Can you use a personal fork in the future? |
Yeah. That shouldn't be a problem. |
This results in a reduction of the instructions necessary for endian-related operations. The wall clock time difference for a single call is miniscule (picoseconds).
An example, with the
ByteOrder.Uint32
function:Runtime instructions: https://godbolt.org/z/7vW1Pfnso
Buildtime instructions: https://godbolt.org/z/baxW1Wb7W
The function call on
amd64
changes from:to
The difference on
arm64
is equivalent, but uses different specific instructions.