[all-commits] [llvm/llvm-project] 644b47: Return result indirectly to bring back big-endian ...
Ahmed Bougacha via All-commits
all-commits at lists.llvm.org
Tue Jun 11 16:08:05 PDT 2024
Branch: refs/heads/users/ahmedbougacha/integrate-siphash-into-libsupport
Home: https://github.com/llvm/llvm-project
Commit: 644b473fa7d0382b035d4dfd2ea4ed88fcd97233
https://github.com/llvm/llvm-project/commit/644b473fa7d0382b035d4dfd2ea4ed88fcd97233
Author: Ahmed Bougacha <ahmed at bougacha.org>
Date: 2024-06-11 (Tue, 11 Jun 2024)
Changed paths:
M llvm/lib/Support/SipHash.cpp
Log Message:
-----------
Return result indirectly to bring back big-endian host support.
Use endian::support to do the appropriate swaps.
Returning the result as a value was convenient but int128 types and
big-endian hosts don't mix well. We don't have 128-bit byteswap, and
it's not something that would even be usable, because int128 can be
returned with the 64-bit halves in little-endian order. I don't know
that we can confidently rely on this being always true, so just define
away this whole problem; we don't need the doubled/16-byte result here
anyway.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list