[libc-commits] [libc] [libc] [search] improve hsearch robustness (PR #73896)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Tue Dec 5 08:43:39 PST 2023
================
@@ -51,6 +51,11 @@ struct Group {
return {data.value};
}
+ // Load a group of control words from an aligned address.
+ LIBC_INLINE static Group load_aligned(const void *__restrict addr) {
+ return *static_cast<const Group *>(addr);
+ }
----------------
nickdesaulniers wrote:
Why use `__restrict` here? What are you trying to avoid aliasing with?
https://github.com/llvm/llvm-project/pull/73896
More information about the libc-commits
mailing list