[libcxx-commits] [PATCH] D123580: [libc++] Use bit field for checking if string is in long or short mode
Louis Dionne via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Apr 12 11:15:22 PDT 2022
ldionne added inline comments.
================
Comment at: libcxx/include/string:696
+#ifdef _LIBCPP_BIG_ENDIAN
+ static const size_type __endian_factor = 2;
#else
----------------
Mordante wrote:
> Since you now understand how this works, it would be nice to add some documentation.
Indeed -- it would be awesome if you could add some documentation explaining how these representations work, and that may also help in catching potential issues with this patch.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D123580/new/
https://reviews.llvm.org/D123580
More information about the libcxx-commits
mailing list