0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-05-29 00:03:45 +02:00

ircd::simd: Zero-init result to not burden caller w/ partial inits.

This commit is contained in:
Jason Volk 2022-04-30 14:59:16 -07:00
parent 41c6c35b4c
commit 61c64ccb08

View file

@ -44,7 +44,10 @@ noexcept
std::is_integral<lane_type<U>>()
);
lane_type<T> out alignas(alignof(T)) [lanes<T>()];
lane_type<T> out alignas(alignof(T)) [lanes<T>()]
{
0
};
for(uint i(0); i < lanes<T>(); ++i)
out[dst[i]] = in[src[i]];