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:01:49 +0000 (15:01 +0100)
commit2e29e2fbeb8936e5c85cefaf547cba42e17e137b
tree2806731224cdf955963323b7de8364ef726b9f91
parentaf46073dbe83d88e2d93d967da447346b22c70bb
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.
libstdc++-v3/include/experimental/bits/simd.h