[PATCH v3] libstdc++: std::simd for C++26
Matthias Kretz
MatthiasKretz@gmx.net
Mon Feb 9 10:57:20 GMT 2026
Tomasz Kaminski [Monday, 9 February 2026 11:47:59 CET]:
> On Mon, Feb 9, 2026 at 11:38 AM Matthias Kretz <MatthiasKretz@gmx.net>
> wrote:
> > clang-tidy "complained" about several "magic numbers" in the code. I have
> > a
> > patch to resolve some of these.
>
> Where exactly does it complain? Can you use __int_traits::width instead
> (see <bit> header).
constant expressions and constraints, so yes, a constant expression would
work. However, it's '__is_integer_nonstrict<long long>::__width' or
'__int_traits<unsigned long long>::__digits', no?
--
──────────────────────────────────────────────────────────────────────────
Dr. Matthias Kretz https://mattkretz.github.io
GSI Helmholtz Center for Heavy Ion Research https://gsi.de
std::simd
──────────────────────────────────────────────────────────────────────────
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part.
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20260209/ca4c18ff/attachment.sig>
More information about the Libstdc++
mailing list