mirror of
https://github.com/matrix-construct/construct
synced 2024-11-25 08:12:37 +01:00
ircd::simd: Fix static emission of traits and related templates.
This commit is contained in:
parent
669c8d0d0f
commit
146a08dabd
2 changed files with 6 additions and 2 deletions
|
@ -40,6 +40,7 @@ noexcept
|
|||
/// Convenience template. Extends a bool value where the lsb is 1 or 0 into a
|
||||
/// mask value like the result of vector comparisons.
|
||||
template<class T>
|
||||
[[gnu::always_inline]]
|
||||
inline T
|
||||
ircd::simd::boolmask(const T a)
|
||||
noexcept
|
||||
|
@ -51,6 +52,7 @@ noexcept
|
|||
/// sometimes one might need an actual value of 1 for accumulators or maybe
|
||||
/// some bool-type reason...
|
||||
template<class T>
|
||||
[[gnu::always_inline]]
|
||||
inline T
|
||||
ircd::simd::popmask(const T a)
|
||||
noexcept
|
||||
|
|
|
@ -40,7 +40,8 @@ namespace ircd::simd
|
|||
/// Get number of lanes for vector type (the number after the x in the
|
||||
/// type name).
|
||||
template<class T>
|
||||
constexpr size_t
|
||||
[[gnu::always_inline]]
|
||||
inline constexpr size_t
|
||||
ircd::simd::lanes()
|
||||
{
|
||||
constexpr size_t ret
|
||||
|
@ -58,7 +59,8 @@ ircd::simd::lanes()
|
|||
|
||||
/// Get the size of each lane; i.e the size of one integral element.
|
||||
template<class T>
|
||||
constexpr size_t
|
||||
[[gnu::always_inline]]
|
||||
inline constexpr size_t
|
||||
ircd::simd::sizeof_lane()
|
||||
{
|
||||
constexpr size_t ret
|
||||
|
|
Loading…
Reference in a new issue