[libc-commits] [PATCH] D129808: [libc] add unsafe mode to strlen
Thorsten via Phabricator via libc-commits
libc-commits at lists.llvm.org
Fri Jul 15 09:35:48 PDT 2022
tschuett added inline comments.
================
Comment at: libc/src/string/string_utils.h:22
+template <typename T> constexpr T repeat_byte(T byte) {
+ constexpr size_t BITS_IN_BYTE = 8;
+ T result = 0;
----------------
It is set in stone that a byte has 8 bits for all llvm-libc variants? In LLVM there is always somebody with other ideas.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D129808/new/
https://reviews.llvm.org/D129808
More information about the libc-commits
mailing list