0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 08:12:37 +01:00

ircd::simd: Fix constexpr-if failure in gcc-8.

This commit is contained in:
Jason Volk 2020-07-10 02:38:27 -07:00
parent 72a61a7426
commit 04e87b0095

View file

@ -29,8 +29,9 @@ ircd::simd::lane_cast(const T &in)
lanes<R>() == lanes<T>(), "Types must have matching number of lanes." lanes<R>() == lanes<T>(), "Types must have matching number of lanes."
); );
if constexpr(__has_builtin(__builtin_convertvector)) #if __has_builtin(__builtin_convertvector)
return __builtin_convertvector(in, R); return __builtin_convertvector(in, R);
#endif
R ret; R ret;
for(size_t i(0); i < lanes<R>(); ++i) for(size_t i(0); i < lanes<R>(); ++i)