[libcxx-commits] [libcxx] [libc++] std::byteswap support for _BitInt(N) (PR #196512)
Xavier Roche via libcxx-commits
libcxx-commits at lists.llvm.org
Sun May 10 09:04:19 PDT 2026
xroche wrote:
> Mostly looks good. I'd like to consider the design question a bi5 though. If we don't find a good use-case I think we should reject for now.
Not a use-case, but the Mandate exists to prevent padding bits from being shuffled into value-bit positions; at sizeof == 1 **no bytes move**, so a padding bit can never land where a value bit was, and the result is always the input. That's why bool might be admitted despite the strict Mandate reading, and _BitInt(N<8) could fall in exactly the same category ?
https://github.com/llvm/llvm-project/pull/196512
More information about the libcxx-commits
mailing list