[libcxx-commits] [libcxx] [libc++] std::byteswap support for _BitInt(N) (PR #196512)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Sun May 10 03:59:01 PDT 2026


philnik777 wrote:

> > Can't we just defer to `__builtin_bswapg`?
> 
> Done! However, I kept the original implementation as a fallback as the minimum compiler version for libc++ is Clang 21 - should we bump it along the PR or wait to remove the conditionals later ?

Neither. We should just disable the tests for compilers that are too old. There is very little value in an implementation that we'll drop in a few months for a new, relatively experimental feature.

https://github.com/llvm/llvm-project/pull/196512


More information about the libcxx-commits mailing list