[libcxx-commits] [libcxx] [libc++] Optimize bitset::to_string (PR #128832)
Peng Liu via libcxx-commits
libcxx-commits at lists.llvm.org
Thu May 15 08:34:20 PDT 2025
================
@@ -389,6 +395,22 @@ __bitset<_N_words, _Size>::to_ullong(true_type, true_type) const {
return __r;
}
+template <size_t _N_words, size_t _Size>
+template <bool _Spare, class _CharT, class _Traits, class _Allocator>
----------------
winner245 wrote:
Thanks! I've inlined the selection of `__zero` and `__one` within the `__to_string` function (same below). So the optimization logic is now in a single place.
https://github.com/llvm/llvm-project/pull/128832
More information about the libcxx-commits
mailing list