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:
parent
72a61a7426
commit
04e87b0095
1 changed files with 2 additions and 1 deletions
|
@ -29,8 +29,9 @@ ircd::simd::lane_cast(const T &in)
|
|||
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);
|
||||
#endif
|
||||
|
||||
R ret;
|
||||
for(size_t i(0); i < lanes<R>(); ++i)
|
||||
|
|
Loading…
Reference in a new issue