mirror of
https://github.com/matrix-construct/construct
synced 2024-12-25 15:04:10 +01:00
ircd::simd: Add broad_cast template without required deduction argument.
This commit is contained in:
parent
30e5a0110c
commit
42fd88d169
1 changed files with 14 additions and 0 deletions
|
@ -16,6 +16,20 @@ namespace ircd::simd
|
|||
template<class T,
|
||||
class V>
|
||||
T broad_cast(T, const V) noexcept;
|
||||
|
||||
template<class T,
|
||||
class V>
|
||||
T broad_cast(const V) noexcept;
|
||||
}
|
||||
|
||||
template<class T,
|
||||
class V>
|
||||
[[using gnu: always_inline, gnu_inline, artificial]]
|
||||
extern inline T
|
||||
ircd::simd::broad_cast(const V v)
|
||||
noexcept
|
||||
{
|
||||
return broad_cast(T{}, v);
|
||||
}
|
||||
|
||||
template<class T,
|
||||
|
|
Loading…
Reference in a new issue