From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1464) id 77AF83857811; Fri, 4 Sep 2020 19:05:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 77AF83857811 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1599246341; bh=UQInFMi1Yi7nOMnMRYZHzfbW8yUmU84pRmIWeffgxwA=; h=From:To:Subject:Date:From; b=DosA7/O8GglTV/Jupl6+Gem48VDdFqBsh5JB0y5e0xj+IXljjCVLZq43ckWCJvYKc VOpqoDKKQLbY4ImWIuGfDiSMtf7+zKPV0PlGlG6KcgoS7jIwUYuD5pkjXYuxIQ8VQo Vt6NYCTalWzE9lacTZC3ZIVW3kKYfOETHa9sGgEE= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Peter Bergner To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc(refs/vendors/ibm/heads/gcc-9-branch)] libstdc++: Define missing __cpp_lib_int_pow2 macro X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/vendors/ibm/heads/gcc-9-branch X-Git-Oldrev: 7ddb714f4e950c0a2621a333d139891d0648bf83 X-Git-Newrev: e29964838b08dd7c0113582620b61505d2ee6c68 Message-Id: <20200904190541.77AF83857811@sourceware.org> Date: Fri, 4 Sep 2020 19:05:41 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 Sep 2020 19:05:41 -0000 https://gcc.gnu.org/g:e29964838b08dd7c0113582620b61505d2ee6c68 commit e29964838b08dd7c0113582620b61505d2ee6c68 Author: Jonathan Wakely Date: Thu Apr 23 17:20:47 2020 +0100 libstdc++: Define missing __cpp_lib_int_pow2 macro 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. Diff: --- libstdc++-v3/ChangeLog | 4 ++++ libstdc++-v3/include/std/bit | 2 ++ libstdc++-v3/include/std/version | 1 + 3 files changed, 7 insertions(+) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 3dff28d4b74..2c01ae9377a 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,9 @@ 2020-04-23 Jonathan Wakely + * 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 diff --git a/libstdc++-v3/include/std/bit b/libstdc++-v3/include/std/bit index 7d5e575722c..c4af1cfcb4d 100644 --- a/libstdc++-v3/include/std/bit +++ b/libstdc++-v3/include/std/bit @@ -307,6 +307,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // [bit.pow.two], integral powers of 2 +#define __cpp_lib_int_pow2 201806L + template constexpr _If_is_unsigned_integer<_Tp, bool> ispow2(_Tp __x) noexcept diff --git a/libstdc++-v3/include/std/version b/libstdc++-v3/include/std/version index 3be53fd9ac5..830b8172e56 100644 --- a/libstdc++-v3/include/std/version +++ b/libstdc++-v3/include/std/version @@ -169,6 +169,7 @@ # 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