[libcxx-commits] [libcxx] [libc++] Improve performance of std::midpoint for small types (PR #192804)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Apr 21 06:37:20 PDT 2026
philnik777 wrote:
> > Can we instead just get ourselves an extra bit via a `_BitInt` to do the arithmetic and truncate after again?
>
> I've done so, but the result is slightly worse on 32 bit platforms: https://godbolt.org/z/653djMTP3
I don't think that's a huge deal. We can file a bug against LLVM for that.
https://github.com/llvm/llvm-project/pull/192804
More information about the libcxx-commits
mailing list