[libc++] Implement P1272R4 (std::byteswap)
Implement P1274R4
Reviewed By: Quuxplusone, Mordante, #libc
Spies: jloser, lebedev.ri, mgorny, libcxx-commits, arichardson
Differential Revision: https://reviews.llvm.org/D114074
NOKEYCHECK=True
GitOrigin-RevId: 1dc62f2653f837745251bd905940c11962469b45
diff --git a/include/version b/include/version
index 7c16ac8..4b6f9b3 100644
--- a/include/version
+++ b/include/version
@@ -41,6 +41,7 @@
__cpp_lib_bounded_array_traits 201902L <type_traits>
__cpp_lib_boyer_moore_searcher 201603L <functional>
__cpp_lib_byte 201603L <cstddef>
+__cpp_lib_byteswap 202110L <bit>
__cpp_lib_char8_t 201811L <atomic> <filesystem> <istream>
<limits> <locale> <ostream>
<string> <string_view>
@@ -344,6 +345,7 @@
#endif
#if _LIBCPP_STD_VER > 20
+# define __cpp_lib_byteswap 202110L
# define __cpp_lib_is_scoped_enum 202011L
// # define __cpp_lib_stacktrace 202011L
// # define __cpp_lib_stdatomic_h 202011L