]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Define missing __cpp_lib_int_pow2 macro
authorJonathan Wakely <jwakely@redhat.com>
Thu, 23 Apr 2020 16:20:47 +0000 (17:20 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 23 Apr 2020 17:54:44 +0000 (18:54 +0100)
The P1956R1 renaming isn't implemented on the gcc-9 branch, so this is
the old value corresponding to the original proposal that added these
functions.

* include/std/bit (__cpp_lib_int_pow2): Define to indicate P0556R3
support.
* include/std/version (__cpp_lib_int_pow2): Likewise.

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/bit
libstdc++-v3/include/std/version

index 3dff28d4b744e20758aec87c36b616666288d6c1..2c01ae9377a78ee9aeda6305a92cd3ac694d4a62 100644 (file)
@@ -1,5 +1,9 @@
 2020-04-23  Jonathan Wakely  <jwakely@redhat.com>
 
+       * include/std/bit (__cpp_lib_int_pow2): Define to indicate P0556R3
+       support.
+       * include/std/version (__cpp_lib_int_pow2): Likewise.
+
        Backport from mainline
        2019-12-10  Jonathan Wakely  <jwakely@redhat.com>
 
index 7d5e575722c4fbd33c8286bc3e6d39da7f727304..c4af1cfcb4da542b5e87b0ccff99062756fb5d15 100644 (file)
@@ -307,6 +307,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
 
   // [bit.pow.two], integral powers of 2
 
+#define __cpp_lib_int_pow2 201806L
+
   template<typename _Tp>
     constexpr _If_is_unsigned_integer<_Tp, bool>
     ispow2(_Tp __x) noexcept
index 3be53fd9ac5766a9107dcd7b9d595db9e7802eb4..830b8172e56be30c977868e4ee0bbcb67d495635 100644 (file)
 # define __cpp_lib_destroying_delete 201806L
 #endif
 #define __cpp_lib_endian 201907L
+#define __cpp_lib_int_pow2 201806L
 #ifdef _GLIBCXX_HAVE_BUILTIN_IS_CONSTANT_EVALUATED
 # define __cpp_lib_is_constant_evaluated 201811L
 #endif