]> git.ipfire.org Git - people/ms/gcc.git/commit
libstdc++: Simplify three helper functions into one
authorMatthias Kretz <m.kretz@gsi.de>
Sat, 14 Jan 2023 22:32:38 +0000 (23:32 +0100)
committerMatthias Kretz <m.kretz@gsi.de>
Thu, 23 Feb 2023 14:07:53 +0000 (15:07 +0100)
commita1f70114f9bae5a1dbcec4b556c16716601fccf1
tree8609445223dc032fccdb0b2d0715160098210d3f
parent073ef7898411b7562cad0b375c57e0357a2ff1ee
libstdc++: Simplify three helper functions into one

Broadcast is a very common function. This should reduce compile-time
effort.

Signed-off-by: Matthias Kretz <m.kretz@gsi.de>
libstdc++-v3/ChangeLog:

PR libstdc++/108030
* include/experimental/bits/simd.h (__vector_broadcast):
Implement via __vector_broadcast_impl instead of
__call_with_n_evaluations + 2 lambdas.
(__vector_broadcast_impl): New.

(cherry picked from commit 2e29e2fbeb8936e5c85cefaf547cba42e17e137b)
libstdc++-v3/include/experimental/bits/simd.h