[all-commits] [llvm/llvm-project] 4e290b: [libc][strings] Refactor load_aligned for cleaner ...
Jeff Bailey via All-commits
all-commits at lists.llvm.org
Tue Mar 24 13:40:48 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4e290b34294cd6de562385bc8c5f8af457aeb46a
https://github.com/llvm/llvm-project/commit/4e290b34294cd6de562385bc8c5f8af457aeb46a
Author: Jeff Bailey <jbailey at raspberryginger.com>
Date: 2026-03-24 (Tue, 24 Mar 2026)
Changed paths:
M libc/src/string/memory_utils/utils.h
Log Message:
-----------
[libc][strings] Refactor load_aligned for cleaner endianness handling (#186360)
Replace the explicit `if constexpr` branching for big and little
endianness with compile-time calculated shift constants `VAL_SHIFT` and
`NEXT_SHIFT`. This simplifies the logic and reduces code duplication,
relying on the compiler to constant-fold the zero shifts into no-ops.
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