[PATCH] libstdc++: Bump __cpp_lib_clmul

Tomasz Kaminski tkaminsk@redhat.com
Sat Nov 21 11:46:48 GMT 2026


On Sat, Nov 21, 2026 at 12:38 PM Jakub Jelinek <jakub@redhat.com> wrote:

> Hi!
>
> I've committed the clmul patch some days ago with the FTM intentionally
> lowered just in case the paper undergoes substantial changes.
> For simd part that would be even useful but we don't have that
> implemented yet.
>
> This patch just updates it to the final one.
>
> Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
>
> 2026-11-21  Jakub Jelinek  <jakub@redhat.com>
>
>         * include/bits/version.def (clmul): Bump FTM to 202611.
>         * include/bits/version.h: Regenerate.
>         * include/std/numeric: Compare __glibcxx_clmul against 202611
> rather
>         than 202610.
>         * testsuite/26_numerics/clmul/1.cc: Expect __cpp_lib_clmul 202611.
>
> --- a/libstdc++-v3/include/bits/version.def     2026-11-13
> 14:52:02.789825353 +0100
> +++ b/libstdc++-v3/include/bits/version.def     2026-11-20
> 12:56:11.909677894 +0100
> @@ -2712,7 +2712,7 @@ ftms = {
>  ftms = {
>    name = clmul;
>    values = {
> -    v = 202610;
> +    v = 202611;
>      cxxmin = 29;
>    };
>  };
> --- a/libstdc++-v3/include/bits/version.h       2026-11-13
> 14:52:02.789825353 +0100
> +++ b/libstdc++-v3/include/bits/version.h       2026-11-20
> 12:56:18.573405936 +0100
> @@ -2993,9 +2993,9 @@
>
>  #if !defined(__cpp_lib_clmul)
>  # if (__cplusplus >  202603L)
> -#  define __glibcxx_clmul 202610L
> +#  define __glibcxx_clmul 202611L
>  #  if defined(__glibcxx_want_all) || defined(__glibcxx_want_clmul)
> -#   define __cpp_lib_clmul 202610L
> +#   define __cpp_lib_clmul 202611L
>  #  endif
>  # endif
>  #endif /* !defined(__cpp_lib_clmul) */
> --- a/libstdc++-v3/include/std/numeric  2026-11-14 10:21:04.144087557 +0100
> +++ b/libstdc++-v3/include/std/numeric  2026-11-20 12:57:16.707835393 +0100
> @@ -766,7 +766,7 @@ namespace ranges
>  } // namespace ranges
>  #endif // __glibcxx_ranges_iota
>
> -#if __glibcxx_clmul >= 202610L // C++29
> +#if __glibcxx_clmul >= 202611L // C++29
>
I preffer using #ifdef  __glibcxx_clmul for checks that are first
introduction of the features,
and >= number for later extensions.

>    template<typename _Tp>
>      class wide_result {
>      public:
> --- a/libstdc++-v3/testsuite/26_numerics/clmul/1.cc     2026-11-09
> 09:56:28.916585353 +0100
> +++ b/libstdc++-v3/testsuite/26_numerics/clmul/1.cc     2026-11-20
> 12:57:57.384306519 +0100
> @@ -4,7 +4,7 @@
>
>  #ifndef __cpp_lib_clmul
>  # error "Feature-test macro for clmul missing in <numeric>"
> -#elif __cpp_lib_clmul != 202610L
> +#elif __cpp_lib_clmul != 202611L
>  # error "Feature-test macro for clmul has wrong value in <numeric>"
>  #endif
>
>
>         Jakub
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20261121/5fae5473/attachment.htm>


More information about the Libstdc++ mailing list